qaz@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agoSeptlemmy.worldimagemessage-square30linkfedilinkarrow-up1452arrow-down13
arrow-up1449arrow-down1imageSeptlemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · 1 year agomessage-square30linkfedilink
minus-squaretomenzgg@midwest.sociallinkfedilinkEnglisharrow-up4·1 year 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-squaremyotheraccount@lemmy.worldlinkfedilinkarrow-up2·1 year 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·1 year 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#
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 :)