Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-10-12 13:39:00


Joel de Guzman <joel_at_[hidden]> writes:

> Hi,
>
> Here's a pre-release package of Phoenix-2. Jaakko and I agreed
> that it will be the basis of the Phoenix and Boost Lambda
> merger. This version is Phoenix 1 + Lambda + a lot more.
>
> Take note though that this is not a drop-in replacement of
> Phoenix-1 for Spirit users. In particular, there is no
> closure support. Phoenix-2 has true local variables. The
> plan for Spirit-2 is to replace closures with local variables.
>
> Docs: http://tinyurl.com/77pz5
>
> The pre-release package is here:
> http://spirit.sourceforge.net/dl_more/phoenix_v2.zip
>
> Just drop it where Phoenix-1 is and run the examples/tests.
> Comments, feedback very welcome!

  arg1 // evaluates to a unary function
  arg2 // evaluates to a binary function
  arg3 // evaluates to a ternary function

I am surprised. Shouldn't arg1 be a one-or-more argument function
that returns its first argument, and arg3 be a three-or-more argument
function that returns its third argument?

Also, I think you can drop "evaluates to" and put something more
descriptive in the comments.

-- 
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