
Vladimir Prus <ghost@cs.msu.su> writes:
I was rather exited about FP some years ago when I first exposed to the concept. I've experimented for some time, and now I'm not as excited. While
max_element(my_namespace::transform(some_container, functor));
does save some typing, it might negatively affect compile time. And if 'functor' is tryly polymorphic (i.e. has templated operator()), you can get the the point when all the application is one big translation unit full of templates.
You say that like it's a *bad* thing. Seriously, what do you think a Spirit parser is? There are domains for which it's appropriate/effective to use a "library that thinks it's a compiler" (c.f. http://oonumerics.org/blitz/) -- Dave Abrahams Boost Consulting www.boost-consulting.com