Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-03-02 09:08:44


Vladimir Prus <ghost_at_[hidden]> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk