gosukiwi / Blueberry

A beautiful programming language with clean syntax which compiles to PHP
MIT License
63 stars 10 forks source link

Make parens optional on function call #9

Closed gosukiwi closed 9 years ago

gosukiwi commented 11 years ago

Make it so function calls can have optional parens if they have arguments

myFuncCall() # this one must have parens
myFuncCall arg1, arg2 [newline] # optional parens here
hikari-no-yume commented 9 years ago

While it does save typing, I found this feature in CoffeeScript to be very stabby (is that even a word?). Especially with nested function calls, it's easy to cause ambiguities when reading, and have it compile to something other than what you were expecting.

gosukiwi commented 9 years ago

Yeah after a while of using coffeescript I didn't really like this... It makes things quite inconsistent, and you have to end up following a coding standard to not get confused.

hikari-no-yume commented 9 years ago

In that case, will you close the issue?