653
Sept (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] tomenzgg@midwest.social 5 points 4 months ago

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).

[-] Zagorath@aussie.zone 5 points 4 months ago

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 4 months ago

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

[-] tomenzgg@midwest.social 3 points 4 months ago

๐Ÿ’ฏ๐Ÿ’ฏ๐Ÿ’ฏ๐Ÿ’ฏ๐Ÿ’ฏ๐Ÿ’ฏ๐Ÿ’ฏ๐Ÿ’ฏ๐Ÿ’ฏ๐Ÿ’ฏ๐Ÿ’ฏ

[-] qaz@lemmy.world 5 points 4 months ago
[-] myotheraccount@lemmy.world 2 points 4 months ago

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 4 months ago

Nevermind, i just spotted the semicolons :)

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

Programmer Humor

29603 readers
1226 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