|
Re: The fate of reduce() in Python 3000
|
Posted: Mar 1, 2006 3:17 PM
|
|
Hello everyone. I beg pardon for my bad English. I was very disapopinted and upset wheh heared about they want to throw away map, reduse, filter and especially lambda... I am nither Lisper nor Schemer... You see, I long time was looking for language that will satisfy all my needs. And I found it - it was Python. Before that I have worked quite close with Pascal, C, Java, Javascript, ActionScript, Java, little Perl, Tcl and PHP. At that time I learned two programming paradigms - procedure-oriented (imperative) and OOP. My acquaintance with functional programming began exactly from Python. But as soon I understood the power and elegance of some FP constructions in Python, not to mention the two other paradigms that Python supports, I can't live without them. I absolutely agree with Pasko Robert, Jamie Turner, Åsmund Ødegård and others. List comprehansions is quite powerful and useful mechanism, but they cant't substitute in full measure map, reduse, filter, that someone called "Three whales of FP in Python". An concerning lambda... I widely use it in my work. Actually I can say that I am missing of full value anonimous functions, where it can be more than one function call, as in lambda. I anderstand that it is some kind of problem, caused by the Python indentation, that doesn't allow to figer the inline anonimouse function body. Also I am missing about anonimous objects... All these possibilities as I know are present in Javascript and ActionScript... I think that all flexibility and power of Python is based exectly at the fact that Python is at the same time procedure, OOP and FP language. I __do not__ understand how you want to enhance language, excluding from it this useful features? Or you want it to differ more from other languages so it can occupy its own niche? But why??? I think it is better to give a programmer choice to decide wether to use it or not. And if you see the obscure code it doesn't meen that functions are bad, but rather a programmer, who wrote this code... This is my mind.... I beg pardon for my emotional speach if I offende someone..
P.S. If you exclude these features from Python, I or start searching for another language or begin writing my own version of Python or kill myself and my death will be on your soul, Guido... Joke..... :)
P.P.S. Please, don't kill Functional part of Python...
|
|