Re:Zig 0.9.0
by lmm on Tuesday December 21, 2021 @08:38AM
(#29637235)
There are footguns in making that representation easy to access, e.g. if you try to hash the byte sequence to use floats as hash table keys then it will almost work but you'll get a very subtle error because 0 and -0 will hash differently. And frankly most of the things you'd do with the byte sequence are things that there are more semantically correct ways to do. There should be a way to access that representation but it shouldn't be something you'd stumble into doing accidentally, IMO.
[ Parent
| on HN ]
There are no comments on this comment yet.