Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21756
| From | Robert Kern <robert.kern@gmail.com> |
|---|---|
| Subject | Re: Why not use juxtaposition to indicate function application |
| Date | 2012-03-16 16:18 +0000 |
| References | <20120316124515.GA2529@lap.tuna.tsinghua.edu.cn> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.725.1331914750.3037.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Why not use juxtaposition to indicate function application Robert Kern <robert.kern@gmail.com> - 2012-03-16 16:18 +0000
csiph-web