• @Solemarc
    link
    210 months ago

    As far as I was aware Go didn’t have enums and this

    const()
    

    Pattern is just a weird thing people do because it behaves like an enum?

    • Ethan
      link
      fedilink
      English
      410 months ago

      You are correct, Go doesn’t have enums. The const thing is a widely accepted pattern for approximating enums.