2 ms·
> 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 a
by zozbot234 2y ago
> 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.
- pcwalton 2y agoC and C++ (the latter unofficially, IIRC) have this with bitfield types, and they aren't very well loved, precisely because they aren't addressable.