Why Nostr? What is Njump?
2025-06-12 11:52:30

Anthony Accioly on Nostr: GA folks. For the gophers out there... Just a reminder: a bunch of consts + iota ...

GA folks.

For the gophers out there... Just a reminder: a bunch of consts + iota isn't an enum. Slugs aren’t enums. Interfaces, structs, and switch statements aren’t enums either.

Enums are enums.

Scala went through the same BS for what felt like a gazillion years. At least in Scala we had sealed types and case objects, but yep, they weren’t enums either. Just add a proper enum to the language. Go really needs a proper sum type. Don’t wait until Go v3 like we did in Scala land to introduce a basic construct like this. "Simplicity" here is creating extraordinary levels of complexity.

#gm #enums #golang #scala #languageDesign
Author Public Key
npub1a6we08n7zsv2na689whc9hykpq4q6sj3kaauk9c2dm8vj0adlajq7w0tyc