
3 Oct
2008
3 Oct
'08
4:54 p.m.
On Fri, Oct 3, 2008 at 6:44 PM, Peter Dimov <pdimov@pdimov.com> wrote:
Giovanni Piero Deretta: ...
lambda(_x, _y)[ _z = _x + _y, _z * _z ]
No please, I hate this in python. Let 'let' be (no pun intended).
Eh. How about this one:
lambda(_x, _y)[ let. _z = _x + _y, _z * _z ]
This is quite nice.
I think that the implicit let will be much less of an issue in a lambda context than it is in Python (or Javascript), though.
Hum, the same lambda()[] could means two different things when used when in different contextes... it seems pretty bad to me. And with 'auto' around the corner, it is won't be hard to reuse a lambda expression. -- gpd