News for hackers. Stuff that matters.
Re:New ES2019 JavaScript features by jchook on Friday September 27, 2019 @01:16AM (#21088670)
In which languages does ?: not work that way?

For example in PHP, it works exactly like you describe.

Re:New ES2019 JavaScript features by nojvek on Friday September 27, 2019 @01:43AM (#21088785)
I think that’s exactly what the nullish ?? Operator is.

You can write x ?? y

Which is x !== null and x != undefined ? x : y

Re:New ES2019 JavaScript features by james-mcelwain on Friday September 27, 2019 @11:42AM (#21093170)
Kotlin.