Boost logo

Boost :

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

"Gennadiy Rozental" <gennadiy.rozental_at_[hidden]> writes:

> 3. One of the main lessons I brought from numerous examples of GTM is
> actually that we need to stay away from FP in our production programming as
> far as possible. After all usage of FP techniques it's primary reason why
> compilation more and more taking ridiculously long time nowadays.

How much expressiveness are you willing to trade away in order to get
short compile times? I would choose a Spirit parser over a
hand-written one any day, simply because the Spirit parser is more
maintainable and more directly expresses the intent of the programmer,
and does so at the same level of abstraction at which the programmer
is thinking.

> IOW from where I stand now I wouldn't want my fellow coworkers to
> start using FP in our design. If you(anybody) know an example where
> FP actually does bring any advantages, please step out.

Consider me stepped. Even using as simple an algorithm as for_each
with an appropriate function object has some advantages over a
hand-written loop.

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at