• JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 days ago

    The problem of enums in other languages is that they do not make for a distinct type. They are just integers in a name. Or at least that is the case for C and Java enums.

    This is not the case for Java enums.

    • calcopiritus@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      Yeah, my bad. Long time I don’t use java and miss remembered. Apparently proper java enums exist since 2004.