4 ms·
Go doesn’t have type-safe enums in the language? That’s wild, even C compilers have this feature now (optionally), and then there’s Rust/Swift’s capabilities.
by fnfjfk 3y ago
Go doesn’t have type-safe enums in the language? That’s wild, even C compilers have this feature now (optionally), and then there’s Rust/Swift’s capabilities.
- nonethewiser 3y agoWelcome to Go. “Wait, Go doesnt have X?” I’m convinced its an incomplete language masquerading as a simple one.
- dingnuts 3y agoWell, that's an opinion. Depending on how you define "complete," any language with fewer features than Scala might be considered incomplete Unless you mean: is it enough of a language to be useful for its intended usages? In which case my decade of paychecks would like to let you know that it is, in fact, sufficiently complete for many business needs.
- avgcorrection 3y agoThis is either skirting close to the Nirvana Fallacy or using unwarranted hyperbole. Enumerations aren't an advanced language feature at all and Go was released in 2010.
- pjmlp 3y agoIt is one of those languages that I will use if I have to, not because I want to.
- randomdata 3y agoThey are type-safe, but they are not sum types.
- deleted 3y ago[deleted]