$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] phoenix::bind
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-02 20:13:11
AMDG
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.
In Christ,
Steven Watanabe