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

Ternary else #17

Closed
Knetic opened this issue Jun 29, 2016 · 1 comment
Closed

Ternary else #17

Knetic opened this issue Jun 29, 2016 · 1 comment
Assignees
Milestone

Comments

@Knetic
Copy link
Owner

Knetic commented Jun 29, 2016

The ternary operator currently only supports the true case (?), but doesn't support an "else" case (:), so it's not really ternary. An operator should be implemented which returns the left-hand value unless it is nil, in which case it returns the right-hand value.

@Knetic Knetic self-assigned this Jun 29, 2016
@Knetic Knetic modified the milestone: 1.5.0 Jun 29, 2016
@Knetic
Copy link
Owner Author

Knetic commented Jul 3, 2016

Implemented as of 570ed1e

@Knetic Knetic closed this as completed Jul 3, 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