Boost logo

Boost :

Subject: Re: [boost] [range][algorithms] How about making the range algorithms pipeable as the range adaptors are?
From: Robert Ramey (ramey_at_[hidden])
Date: 2013-09-19 19:26:44


Giovanni Piero Deretta wrote:
> On Thu, Sep 19, 2013 at 6:03 PM, Thorsten Ottosen <
> thorsten.ottosen_at_[hidden]> wrote:
>
> IMHO the pipe syntax should just be a shorthand for (left associative)
> function application, i.e.:
>
> x | f
>
> should simply be a equivalent to
>
> f(x)
>
> This way there would be no fear of confusing concepts and it would be
> of
> more general application and would interact in a powerful way with
> partial application (i.e. bind).

+1 -

I would like to see it as a utility library for composing unary function
objects
whose arguments and return types match up.

It's to interesting and useful to be part of boost range. Taking it out of
boost.range would also simplify boost range.

Robert Ramey
.


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