In message <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> A question: if you WERE to implement function definitions as normal
> expressions, how would you go about embedding it within an expression?
>
> x = map(def a:
> <line of code>
> <line of code>
> <line of code>
> , [1, 2, 3])
Perl can do it just fine:
$x = map
(
sub
{
...
},
[1, 2, 3]
);
The fact that Python has difficulties is purely a demonstration of the
limitations of indentation-controlled syntax, not a criticism of the
concept itself.
--
http://mail.python.org/mailman/listinfo/python-list