[boost] lambda questions/suggestions
by Brock Peabody other posts by this author
Oct 23 2003 7:02PM messages near this date
[boost] Re: Physical Quantities revisited
|
RE: [boost] Re: Physical Quantities revisited
I'm just starting to dig into lambda. I really like the control structures,
but they seem to have one big weakness in that they can't be chained or
curried. What if the control structure functions didn't immediately
execute, but instead returned function objects? It would add a little to
the regular syntax:
while_loop(condition, body) -> while_loop(condition, body)();
but would allow users to do cool things like:
if_then (condition, while_loop(another_condition, body));
Or maybe there could be a different syntax:
if_then (condition, quote_while_loop(another_condition, body));
Or is this already possible and I'm missing something?
Maybe this is more for FC++, although IMHO if FC++ is accepted it should be
combined with boost::lambda (and bind).
Brock
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Andy Little
Andy Little
Andy Little
Andy Little
Andy Little
Andy Little
Andy Little
Jan Langer
Andy Little
Deane Yang
Paul A. Bristow
Phil Richards
Rene Jager
Deane Yang
Phil Richards
Andy Little
Deane Yang
Brock Peabody
Paul A. Bristow
Andy Little
Andy Little
Matthias Troyer
Paul A. Bristow
Ross MacGregor
Deane Yang
Paul A. Bristow
Deane Yang
Paul A. Bristow
Paul A. Bristow
David Abrahams
Jonathan de Halleux
Philip Miller
Deane Yang
Paul A. Bristow
Paul A. Bristow
David Abrahams
|