Subject: Re: [boost] phoenix::bind
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-02 20:13:11
Joel de Guzman wrote:
> I wonder though if it's a good idea to separate the signature
> from the locals:
> lambda( _x, _y )[ let( _z = 123 )[ ... ] ]
> seems to be more "idiomatic"? No?
> In the last case, lambda just takes in the signature. Let "let" do
> the locals.
Agreed. Unless we mimic C++ default arguments and make it
so that lambda( _x, _y, _z = 123 )[ ... ] can be called with
either 2 or three arguments, using 123 for _z if only two
arguments are passed.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk