optional (), what is done elsewhere
deadalnix
deadalnix at gmail.com
Mon Feb 4 07:09:20 PST 2013
On Monday, 4 February 2013 at 08:02:20 UTC, Jonathan M Davis
wrote:
> 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.
>
Yes, in such language, you'll find no difference between a
function and a variable. It does work because everything is pure
and immutable.
The point is that it does not apply to D.
More information about the Digitalmars-d
mailing list