Why not use juxtaposition to indicate function application

Kiuhnm kiuhnm03.4t.yahoo.it
Fri Mar 16 17:00:16 CET 2012


On 3/16/2012 14:14, bruno.desthuilliers at gmail.com wrote:
> On Mar 16, 1:45 pm, Ray Song<emacs... at gmail.com>  wrote:
>> I confess i've indulged in Haskell and found
>>      f a
>> more readable than
>>      f(a)
>
> Hmmm... What about:
>
>      f a b
>
> versus
>
>      f(a(b))
>
> or was it supposed to be read as
>
>      f(a)(b)
>
>
> or as
>
>     f(a, b)
>
> ?-)

That would be
   f (a b)          # Haskell
   f(a(b))          # Python

Kiuhnm



More information about the Python-list mailing list