jroid8@lemmy.world to Programmer Humor@lemmy.ml · 9 months agoknow the features of your languagelemmy.worldimagemessage-square126fedilinkarrow-up1637arrow-down123
arrow-up1614arrow-down1imageknow the features of your languagelemmy.worldjroid8@lemmy.world to Programmer Humor@lemmy.ml · 9 months agomessage-square126fedilink
minus-squareEbber@lemmings.worldlinkfedilinkarrow-up21·9 months agoIn C# that last one is the null propagation operator. If a is not null then a, else b.
minus-squareABC123itsEASY@lemmy.worldlinkfedilinkarrow-up7·9 months agoAh interesting one of those cases where this could be one of a few languages. I was reading it as JS.
minus-squaredukk@programming.devlinkfedilinkarrow-up3·9 months agoI thought it was TS/JS too, but the way those braces are below the if statements makes it feel more like C#.
In C# that last one is the null propagation operator. If a is not null then a, else b.
Ah interesting one of those cases where this could be one of a few languages. I was reading it as JS.
I thought it was TS/JS too, but the way those braces are below the if statements makes it feel more like C#.
K&R for life