vrok / have

The Have Programming Language
http://havelang.org
BSD 2-Clause "Simplified" License
272 stars 11 forks source link

eliminating parentheses for function calls with arguments #1

Closed davidedc closed 7 years ago

davidedc commented 8 years ago

... that would be reducing even more of the residual C noise!

(or, even better, did you look at the transpilation that http://livescript.net/ does? I'd bet plenty of those are not depending on having a dynamic target language, so they could work? )

(awesome project by the way, I'll use this to go close to the metal)

vrok commented 8 years ago

It's worth considering, I'll think about it. A small disclaimer though - one of the things I like in Go is how straightforward it is to parse, that allows the parser to be really fast and simple, and I'd like to preserve that in Have. I like the lack of language ambiguities, too. I've never heard about LiveScript, I'll take a look at it.

Thanks! Great to hear that you like it, but please don't use it for anything serious yet! ;)

robert-zaremba commented 8 years ago

Eliminating parentheses for function calls makes the parser way more complex. What I like in go is it's explicitly. In my opinion the current syntax is clear and concise enough. When adding new feature one always need to ask two questions:

This feature will increase parser complexity and the code might be more tricky two write / read.

vrok commented 7 years ago

Actually, after a few days of thinking about it, I'll be taking the opposite turn - Have syntax will be moving closer to Go. I hope it won't discourage you from giving Have a try, though. (there's a lengthy explanation on the blog) Again, thanks!

robert-zaremba commented 7 years ago

@vrok +1