-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement safe navigation/null-coalescing operator #229
Comments
I decided not to refer to this as "the Elvis operator", since Wikipedia seems to be of the opinion that that's the name of another operator, usually spelled |
The TC39 proposal makes a good point I hadn't considered: the operator is short-cricuiting such that any side effects happening on the rhs of a |
Code like this:
Could profitably be rewritten by using a
?.
safe navigation operator:The text was updated successfully, but these errors were encountered: