Skip to content
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

Null Coalescence operator #23

Closed
Knetic opened this issue Aug 3, 2016 · 1 comment
Closed

Null Coalescence operator #23

Knetic opened this issue Aug 3, 2016 · 1 comment
Assignees

Comments

@Knetic
Copy link
Owner

Knetic commented Aug 3, 2016

A coalescence operator ?? should be added. It ought to share precedence with ternaries. It should return the left-hand value if it is not nil, otherwise the right-hand value (regardless of nil). This will mirror the C# / ECMA standard of null coalescence, without making users resort to ugly ternary conditionals for the same effect.

@Knetic Knetic self-assigned this Aug 3, 2016
@Knetic
Copy link
Owner Author

Knetic commented Aug 11, 2016

Done as of 2923a49

@Knetic Knetic closed this as completed Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant