qaz@lemmy.world to Programmer Humor@programming.devEnglish · 4 months agoSeptlemmy.worldimagemessage-square71linkfedilinkarrow-up1623
arrow-up1623imageSeptlemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · 4 months agomessage-square71linkfedilink
minus-squaretomenzgg@midwest.sociallinkfedilinkEnglisharrow-up5·4 months 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·4 months 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·4 months agoI fucking love dangling commas. Especially for lists of lists.
minus-squaremyotheraccount@lemmy.worldlinkfedilinkarrow-up2·4 months 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 months 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 :)