qaz@lemmy.world to Programmer Humor@programming.devEnglish · 6 days agoSeptlemmy.worldimagemessage-square72fedilinkarrow-up1648arrow-down15
arrow-up1643arrow-down1imageSeptlemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · 6 days agomessage-square72fedilink
minus-squaretomenzgg@midwest.sociallinkfedilinkEnglisharrow-up5·6 days agoCan 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).
minus-squareZagorath@aussie.zonelinkfedilinkEnglisharrow-up5·5 days agoI understand the argument in favour of dangling commas, but oh gods I hate it. Aesthetically it’s just so awful.
minus-squareGrey Cat@lemmy.worldlinkfedilinkEnglisharrow-up5·5 days agoI fucking love dangling commas. Especially for lists of lists.
minus-squaremyotheraccount@lemmy.worldlinkfedilinkarrow-up2·4 days agoIt 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.
minus-squaremyotheraccount@lemmy.worldlinkfedilinkarrow-up2·4 days agoNevermind, i just spotted the semicolons :)
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).
C#
I understand the argument in favour of dangling commas, but oh gods I hate it. Aesthetically it’s just so awful.
I fucking love dangling commas. Especially for lists of lists.
💯💯💯💯💯💯💯💯💯💯💯
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.
Nevermind, i just spotted the semicolons :)