qaz@lemmy.world to Programmer Humor@programming.devEnglish · un anno faSeptlemmy.worldimagemessage-square30linkfedilinkarrow-up1452arrow-down13
arrow-up1449arrow-down1imageSeptlemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · un anno famessage-square30linkfedilink
minus-squareemb@lemmy.worldlinkfedilinkarrow-up79·edit-2un anno faNice touch making Months plural and Day singular. I also like how Wednessecond isn’t going to be the end of the list, trailing comma is there. Cursed.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up21·un anno faWednesmillisecond, Wednesmicrosecond, …
minus-squareJesusaurus@lemmy.worldlinkfedilinkEnglisharrow-up12·un anno faWednesnanosecond, Wednespicosecond, Wednesfemtosecond, …
minus-squaretomenzgg@midwest.sociallinkfedilinkEnglisharrow-up4·un anno faCan 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·un anno faIt 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·un anno faNevermind, i just spotted the semicolons :)
Nice touch making Months plural and Day singular.
I also like how Wednessecond isn’t going to be the end of the list, trailing comma is there.
Cursed.
Wednesmillisecond, Wednesmicrosecond, …
Wednesnanosecond, Wednespicosecond, Wednesfemtosecond, …
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 :)
deleted by creator