this post was submitted on 10 Oct 2025
635 points (99.2% liked)

Programmer Humor

26846 readers
2494 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] tomenzgg@midwest.social 5 points 2 days ago (3 children)

Can you tell what language it is? Some allow you to have dangling commas (I, personally, hate it but it could be the end of the list, nevertheless).

[–] myotheraccount@lemmy.world 2 points 1 day ago (1 children)

It could be Typescript or Rust. But probably a lot of oter languages have enums expressed like this too. Likely not C, because no semicolon, and no prefix on the variants.

[–] myotheraccount@lemmy.world 2 points 1 day ago

Nevermind, i just spotted the semicolons :)

[–] Zagorath@aussie.zone 5 points 2 days ago (2 children)

I understand the argument in favour of dangling commas, but oh gods I hate it. Aesthetically it's just so awful.

[–] GreyCat@lemmy.world 5 points 2 days ago

I fucking love dangling commas. Especially for lists of lists.

[–] tomenzgg@midwest.social 3 points 1 day ago

💯💯💯💯💯💯💯💯💯💯💯