-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Remove parentheses on function calls with no parameters #2100
Comments
maybe
and
But even then we're still using 2 characters. |
I think parens win strongly on readability, just because it's such a common way to call a function. You can also say "do foo". |
I see it more as a way to adding getters to coffee script using syntax rather than requiring it within the VM. |
if you dont want parens for some reason you always can write I see no point in increasing complexity of a language just to win one character |
I think that'd create some dissonance with Ruby's precedent of identifiers ending with I'm pretty sensitive to parens and other sigils, too, but when it matters I use |
I think this one's ready to be closed. |
It's ugly and such a pain having to do foo.bar() just because the function has no parameters. Can we use the ! operator to call the function? 1 symbol is always easier than 2.
foo.bar!
=>foo.bar()
And with existence operator:
foo.bar!?.baz
is equivalent tofoo.bar()?.baz
So....
I understand this may confuse some ruby developers - but in my option we're already confusing them with the use of ? for the existence operator.
Thoughts?
The text was updated successfully, but these errors were encountered: