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

soak assign #71

Closed
satyr opened this issue Jul 16, 2011 · 0 comments
Closed

soak assign #71

satyr opened this issue Jul 16, 2011 · 0 comments
Milestone

Comments

@satyr
Copy link
Owner

satyr commented Jul 16, 2011

Proposed at http://groups.google.com/group/coffeescript/msg/4a596472dda031ed:

# a.b = c if c?
a.b? = c

# [time, hour, minute] = that if /^(\d\d):(\d\d)$/exec input
[time, hour, minute]? = /^(\d\d):(\d\d)$/exec input

# (options) -> {what, how} = options if options?
({what, how}?) ->
@satyr satyr closed this as completed in 2dd2734 Jul 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant