C++ is a powerful language, but with awful syntax and semantics that can discourage experimentation. Since I started using Haskell just over a year ago, my C++ code is much improved—because I can figure things out quickly in Haskell, then translate them to (somewhat write-only) C++. That I think is a large part of what people mean when they say “Haskell makes me a better programmer”. Not only is it a good language in its own right, but it also helps you prototype software that you need to implement in another language for reasons other than language power.
"C++ is a powerful language, but with awful syntax and semantics that can discourage experimentation."
Then you should try out D. Bartosz Milewski in fact has been involved in D development for a long time. It certainly makes it easier to apply a lot of the FP techniques.
In this case it's probably unnecessary. It's probably better to template these higher-order functions on their function arguments and just return the lambda itself instead of returning it in a function wrapper.
[+] [-] evincarofautumn|13 years ago|reply
[+] [-] kombine|13 years ago|reply
Then you should try out D. Bartosz Milewski in fact has been involved in D development for a long time. It certainly makes it easier to apply a lot of the FP techniques.
[+] [-] Oxryly|13 years ago|reply
[+] [-] 16s|13 years ago|reply
[+] [-] evincarofautumn|13 years ago|reply
[+] [-] repsilat|13 years ago|reply
[+] [-] rosejn|13 years ago|reply
[+] [-] systems|13 years ago|reply
http://www.cprogramming.com/c++11/c++11-lambda-closures.html http://stackoverflow.com/questions/7627098/what-is-a-lambda-...
[+] [-] kombine|13 years ago|reply