Boost logo

Boost :

Subject: Re: [boost] phoenix::bind
From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2008-10-03 12:54:44


On Fri, Oct 3, 2008 at 6:44 PM, Peter Dimov <pdimov_at_[hidden]> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk