Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21756 > unrolled thread

Re: Why not use juxtaposition to indicate function application

Started byRobert Kern <robert.kern@gmail.com>
First post2012-03-16 16:18 +0000
Last post2012-03-16 16:18 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Why not use juxtaposition to indicate function application Robert Kern <robert.kern@gmail.com> - 2012-03-16 16:18 +0000

#21756 — Re: Why not use juxtaposition to indicate function application

FromRobert Kern <robert.kern@gmail.com>
Date2012-03-16 16:18 +0000
SubjectRe: Why not use juxtaposition to indicate function application
Message-ID<mailman.725.1331914750.3037.python-list@python.org>
On 3/16/12 12:45 PM, Ray Song wrote:
> I confess i've indulged in Haskell and found
>      f a
> more readable than
>      f(a)
>
> And why aren't functions curried (partially applied function is another function which takes the rest arguments) by default?

Python isn't a strongly functional language. We just don't do partial function 
application all that frequently to make it a language feature. Leaving out an 
argument is a common enough mistake, though, and using curry-by-default would 
postpone the error and make for even more inscrutable error messages.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web