home.social

#languagedesign — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #languagedesign, aggregated by home.social.

  1. 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.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.

    "Simplicity" here is creating extraordinary levels of complexity.

    #Enums #Golang #scala #LanguageDesign