Boost logo

Boost Users :

Subject: Re: [Boost-users] [Phoenix] Review: Documentation
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-09-29 17:30:47


Zeljko Vrba:
> The best way to understand the purpose of Phoenix is, IMHO, to have some
> first-hand experience with a true functional programming language with
> type-inference and first-order functions, such as SML.

I'm not sure.

The purpose of Phoenix (and Lambda, and boost::bind) is simple: to provide a
concise way to create function objects. Most C++ programmers are familiar
with the need to write function objects and there is no need to learn SML to
take advantage of the basics. Many people start with just needing *_1 < *_2
or bind(&X::name, _1) < bind(&X::name, _2). Some of them simply do not need
to go further (or aren't allowed to, by a coding standard).


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net