You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a couple of points about the null coalescing operator, ??.
Firstly, why isn't it still || like vanilla JS and the rest of the programming languages[1]?
Changing it just for the sake of change just introduces confusion is not an improvement, IMHO.
Secondly, the ruby-esque ||= operator would be amazing.
a ||= b
becomes
a = a || b
(this can be ??= if you're quite set on keeping the ??)
[1] Except the unruly PHP
The text was updated successfully, but these errors were encountered:
I have a couple of points about the null coalescing operator,
??
.Firstly, why isn't it still
||
like vanilla JS and the rest of the programming languages[1]?Changing it just for the sake of change just introduces confusion is not an improvement, IMHO.
Secondly, the ruby-esque
||=
operator would be amazing.becomes
(this can be
??=
if you're quite set on keeping the??
)[1] Except the unruly PHP
The text was updated successfully, but these errors were encountered: