20 Oct
2009
20 Oct
'09
8:42 a.m.
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?