optional (), what is done elsewhere

Jonathan M Davis jmdavisProg at gmx.com
Mon Feb 4 00:01:15 PST 2013


On Monday, February 04, 2013 04:34:32 deadalnix wrote:
> 3/ Haskell
> 
> In haskell, all functions are pure, which make the conflation
> between the function and its result possible in an unambiguous
> manner.

Haskell doesn't even really have variables per se. It's more like they're 
functions with no arguments. The functional world - especially a purely 
functional world - is a very different place from that of a systems programming 
language. And there are no parens on functions in haskell of any kind to begin 
with. The syntax isn't C-like at all. So, I don't think that it's really a 
valid comparison. The real question is what's happened with C-like languages 
that have attempted to make parens on function calls optional. I don't know 
enough about the other languages that you list though to say whether they 
would qualify.

- Jonathan M Davis


More information about the Digitalmars-d mailing list