185
you are viewing a single comment's thread
view the rest of the comments
[-] JackbyDev@programming.dev 3 points 8 hours ago* (last edited 8 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 2 points 6 hours ago

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

this post was submitted on 09 Sep 2026
185 points (86.9% liked)

Programmer Humor

33160 readers
875 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS