Why not use juxtaposition to indicate function application

Ian Kelly ian.g.kelly at gmail.com
Fri Mar 16 13:59:51 EDT 2012


On Fri, Mar 16, 2012 at 10:45 AM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> On Fri, 16 Mar 2012 17:31:06 +0100, Kiuhnm wrote:
>
>> You wouldn't, because Haskel's way is more regular and makes a lot of
>> sense: parentheses are for grouping and that's it.
>
> If f is a function which normally takes (for the sake of the argument)
> one argument, then f would call the function with no arguments (which may
> return a curried function, or may apply default arguments, or perhaps
> raise an exception). So how would you refer to the function itself
> without calling it?

A partial application of f with no arguments is still just f.



More information about the Python-list mailing list