Programmers say, whyuse lamda, you need he same work for function calls. But that is an artifact of the interpreter, its a one pas, and one way or another it has to marshal arguments in run time.
But, the python compiler knows differently. Once the lamda operators are expanded,then the optimization phase has free access to its arguments. It does not have to maintain a call structure anymore.
But in text processing, which is about 90% of programming, they are extremely handy.
No comments:
Post a Comment