-
Notifications
You must be signed in to change notification settings - Fork 48
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
Easier way to cancel implicit return ? #91
Comments
Been pondering myself as well. I'm willing to do this, yet to come up with syntaxes that feel right. It's even more challenging than Coffee because of backcall. Sticking
|
Maybe something similar to this?
|
Remember bound forms: |
Wouldn't |
How? Are you suggesting
? |
Not quite...I was thinking of |
Look inconsistent to me. Both should obey the same rule (add or change), e.g.:
or
|
Forgot to mention; we have one more syntax to consider: |
|
Hardly elegant nor memorable, don't you think? |
I agree; it's not. |
Aesthetically, I'm partial to:
...But that's simply because Further, using In any case, using both |
I really miss the option to cancel implicit returns, so any solution being implemented would be greatly appreciated. |
For {now,test,desparate people}: https://gist.github.com/1446167
↑
|
Gonna implement this using the same aproach as that gist unless anyone objects. I choose
|
👍 |
…of arguments, closes satyr#91
I'm tired of writing
void
orreturn
at end of functionscallbacks passed to
jQuery.each
or dom event or what often check if the return value is false, so I have to fill my code withvoid
orreturn
in case of the last expression happened to be falsemaybe we can have sth. like
instead of
The text was updated successfully, but these errors were encountered: