News for hackers. Stuff that matters.
Re:Zig; what I think after months of using it by zozbot234 on Wednesday February 05, 2025 @02:46AM (#42945279)
> 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.

Re:Zig; what I think after months of using it by pcwalton on Wednesday February 05, 2025 @04:04AM (#42945917)
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.