4
Comments
  • 1
    Makes me wonder why, I sometimes rely on them to indicate possible values, or Js/TS equivalent of x|y|z
  • 0
    @gitpush
    Constant groups are kind of awesome. More languages could use discriminated unions imo 😀
  • 2
    Enums are implied by constants.
    IDEs (and plugins for editors) for Go exist that even take care of this.
  • 3
    Const + iota.
  • 0
    woot, Go has that feature, I use it most of the time
Add Comment