News for hackers. Stuff that matters.
Re:Carbon’s most exciting feature is its calling convention by _nhynes on Saturday July 30, 2022 @10:16PM (#32292540)
Rust `Set<T>` is implemented as `Map<T, ()>`. Go is similar, but you have to do it manually. Zero-sized types mainly have use in generics (so yes-ish by templates, but not accidental).
Re:Carbon’s most exciting feature is its calling convention by Someone on Sunday July 31, 2022 @03:37PM (#32298123)
Still, why would you ever have multiple, if there’s no way to discriminate between them because you can’t mutate them or obtain their address?