6 ms·
Why are parentheses optional for functions? The big thing one can borrow from Python 3 is that there should be one way of doing something to save the community
by nikolay 11y ago
Why are parentheses optional for functions? The big thing one can borrow from Python 3 is that there should be one way of doing something to save the community the endless unproductive fights of which one of the many ways of doing something is best!
- sdegutis 11y agoMeh. I'll take "too many syntax options" over "too few stdlib functions" any day. (I'm looking at you Lua!)
- johnmaguire2013 11y agoFalse dichotomy?
- H2CO3 11y agoI can remove that option at any time, if it turns out to be an important enough issue :)
- johnmaguire2013 11y agoAnd you'll break backwards compatibility with every app written prior.
- H2CO3 11y agoYes, exactly. So this should probably be decided early.
- nikolay 11y agoI think having multiple options is always a bad idea for a language. It complicates the syntax and make people ask why not make parenthesis optional for loop statements as well? Then they perceive this as imperfect design - consciously or not. To me personally, this looks like a patch put in place just to entertain the Ruby crowd and is not along the lines of the solid unambiguous syntax that you're striving for!