Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> What would happent to the primitive types of that language, then?

Not every language has them. A common example here is JavaScript, which, while `undefined` is a thing in, is closer to null than the C sense of undefined.

> When I said that, I was thinking of languages like Go and Java, both of which implicitly initialize integers to 0, booleans to false, floats to 0.0, and references to nil or null.

Right, that's zero initialization. I also agree that I think it's a mis-feature generally, but I think in the overall design space there's reasons you'd end up there. It's not the path I'd personally take, but I can see why people choose it, even if I disagree.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: