• JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    6 hours 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
      2
      ·
      3 hours ago

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