You're viewing a single thread.
View all comments
145
comments
I’m learning swift and I actually just discovered
??
today. Am I missing out in other languages?18 1 ReplyC# and Kotlin both have it
17 0 ReplyYes, it's very useful when applied correctly.
I'm always disappointed when I remember, that I can't use such a feature, because I'm stuck using Java.
13 0 ReplyMaybe you'r using an older version of Java? Works fine for me.
1 0 ReplyNew versions of java have a null coalescing operator?
I didn't know that.
Edit: a short search didn't return any answers, as far as I can see java doesn't have this operator, the closest thing is the ternary if operator.
1 0 Reply
PHP too
9 0 ReplyC#
7 0 ReplyJavaScript and TypeScript too
7 0 Reply
You've viewed 145 comments.
Scroll to top