| ▲ | mistrial9 8 months ago | ||||||||||||||||||||||
a quick search says that std::variant is the modern replacement to implement your niche feature "sum types" | |||||||||||||||||||||||
| ▲ | jlouis 8 months ago | parent | next [-] | ||||||||||||||||||||||
Not a niche feature. Fundamental for any decent language with a type system. | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | soraminazuki 8 months ago | parent | prev | next [-] | ||||||||||||||||||||||
Whoa, that's a core building block of programming and computer science that you're dismissing as "niche" without explanation. | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | grandempire 8 months ago | parent | prev [-] | ||||||||||||||||||||||
That’s for C++. And how is std::variant implemented? | |||||||||||||||||||||||
| |||||||||||||||||||||||