Re:C++ proposal: There are 8 bits in a byte
by whs on Friday October 18, 2024 @11:35PM
(#41885460)
Sounds like zero-sized types in Rust, where it is used as marker types (eg. this struct own this lifetime). It also can be used to turn a HashMap into a HashSet by storing zero sized value. In Go a struct member of [0]func() (an array of function, with exactly 0 members) is used to make a type uncomparable as func() cannot be compared.
[ Parent
| on HN ]
There are no comments on this comment yet.