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

[Feature Request] "bang" syntax for calling functions with no arguments. #2396

Closed
twoolie opened this issue Jun 25, 2012 · 4 comments
Closed
Labels

Comments

@twoolie
Copy link

twoolie commented Jun 25, 2012

I've been looking at the LiveScript additions to coffeescript and I feel that there is one piece of livescript that we can adopt that will remove the last few mandatory parens from coffeescript. That feature is the "bang" syntax for calling functions with no arguments. e.g.

@elem.text()
  becomes
@elem.text!

@slides.text().split("\n")
  becomes
@slides.text!split "\n"

This would be very handy for those of us who detest parens and love coffeescript for it's ability to do away with them.

@goto-bus-stop
Copy link

#514, #1412, #2100, #2289

@michaelficarra
Copy link
Collaborator

Thanks, @renekooi.

@twoolie
Copy link
Author

twoolie commented Jun 25, 2012

I swear, I searched for both "!" and "bang" in the ticket list before opening...

@OnesimusUnbound
Copy link

Hmm, it's time to update the FAQ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants