logoalt Hacker News

tialaramexyesterday at 9:43 PM1 replyview on HN

This is why C++ doesn't have ZSTs, it wants all objects to have identities, the obvious way to distinguish them is by where they are in memory, but ZSTs don't have distinct addresses in memory.


Replies

ameliaquiningtoday at 3:35 AM

I'm not a C++ expert. Why does C++ want all objects to have identities? Presumably it has some feature or something Rust doesn't have that requires this?

show 1 reply