
3 Oct
2008
3 Oct
'08
12:13 a.m.
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