Re:Mandelbrot set in C++11
by mikeash on Thursday February 28, 2013 @10:07AM
(#5298934)
Maybe we have different aesthetic objections, but isn't all of the ugliness in that example due to the templated std::complex class, and unrelated to lambdas? If you make a typedef first, it becomes considerably nicer:
auto func = [](cdouble z, cdouble c) -> cdouble { return z * z + c; }
auto func = [](cdouble z, cdouble c) -> cdouble { return z * z + c; }