News for hackers. Stuff that matters.
Re:Carbon’s most exciting feature is its calling convention by Someone on Saturday July 30, 2022 @06:22PM (#32290959)
I may be overlooking something, but I don’t see a realistic use case for having multiple empty tuples without an address.

If you have those, I don’t see any way to discriminate between them. If so, why would you ever want to have more than one of a given type? Is there some template code that might accidentally try to create them?

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?