[Python-ideas] a new lambda syntax
Masklinn
masklinn at masklinn.net
Tue Oct 20 10:42:46 CEST 2009
On 20 Oct 2009, at 01:30 , Steven D'Aprano wrote:
>
> Given the difficulty in testing such anonymous functions, what do they
> do to the correctness of programs?
Nothing different than what `with` or `while` statements do.
> My point is that when it comes to data, we have anonymous data that is
> easy and straightforward to define, and yet we *still* prefer to give
> data names and define it ahead of where we use it.
Not in every case.
> So why is code different?
Why indeed? As you said above, we have anonymous data that is easy and
straightforward to define, why treat code differently and prevent this
even when that code is just as easy and straightforward to define?
More information about the Python-ideas
mailing list