3 ms·
In which languages does ?: not work that way? For example in PHP, it works exactly like you describe.
by jchook 7y ago
In which languages does ?: not work that way?
For example in PHP, it works exactly like you describe.
- nojvek 7y agoI think that’s exactly what the nullish ?? Operator is. You can write x ?? y Which is x !== null and x != undefined ? x : y
- james-mcelwain 7y agoKotlin.