this post was submitted on 08 Dec 2023
623 points (96.4% liked)

Programmer Humor

32710 readers
1362 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 21 points 1 year ago (1 children)

In C# that last one is the null propagation operator. If a is not null then a, else b.

[–] [email protected] 7 points 1 year ago (1 children)

Ah interesting one of those cases where this could be one of a few languages. I was reading it as JS.

[–] dukk 3 points 1 year ago (1 children)

I thought it was TS/JS too, but the way those braces are below the if statements makes it feel more like C#.

[–] [email protected] 2 points 1 year ago