Trending Tags
    Trending Notes
    Global
    Trending Profiles

      Nostr View


      Anthony Accioly @Anthony Accioly - 3mo

      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

      undefined
      undefined
      undefined

      Showing page 1 of 1 pages