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

> Because you should be able to take the address of any value

That's debatable, though. One could argue that languages should explicitly support "values that are never going to have their address taken, be passed by reference/pointer, etc." which would only become addressable, e.g. as part of a struct.



C and C++ (the latter unofficially, IIRC) have this with bitfield types, and they aren't very well loved, precisely because they aren't addressable.




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

Search: