• Err(()).unwrap()@lemmy.world
    link
    fedilink
    arrow-up
    115
    ·
    2 months ago

    Actually they’re only enums if they’re made in the Enümmär region of Germany, otherwise they’re just sparkling integers.

    • ZILtoid1991@lemmy.worldOP
      link
      fedilink
      arrow-up
      12
      arrow-down
      1
      ·
      2 months ago

      Another comment on this post have declared enums outside of Rust being bad for not having tagged union capabilities.

      • RaphaelSchmitz@feddit.org
        link
        fedilink
        arrow-up
        13
        ·
        2 months ago

        Yeah but that’s just edgelord behaviour.

        You get those a lot with all kinds of programming languages, and Rust is certainly not know for having less of them.