Trending Tags
  • #nostr
  • #bitcoin
  • #wordle
  • #pow
  • #nostrforever
Trending Notes
Global
Trending Profiles
  • The Daniel ⚡️ and 84 sats
    @daniel
  • node
    @node
  • Szachik Sabizański
    @likemike
  • The Fishcake🐶🐾 & 763 others
    @The Fishcake🐶🐾
  • Gigi
    @Gigi

Nostr View


Anthony Accioly @Anthony Accioly - 1mo

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

0
0
3

Showing page 1 of 1 pages