Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

soak assign #71

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

Comments

Projects
None yet
1 participant
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 in 2dd2734 Jul 16, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment