637
Sept (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] tomenzgg@midwest.social 5 points 2 days 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).

[-] qaz@lemmy.world 5 points 23 hours ago
[-] myotheraccount@lemmy.world 2 points 1 day 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 1 day ago

Nevermind, i just spotted the semicolons :)

[-] Zagorath@aussie.zone 5 points 1 day 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 4 points 1 day ago

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

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

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

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

Programmer Humor

26827 readers
1703 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