Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-07-06 06:49:20


"Pavel Vozenilek" <pavel_vozenilek_at_[hidden]> writes:

> "Shunsuke Sogame" wrote:
>> Joel de Guzman wrote:
>>> Jeff Garland wrote:
>>>
>>>> std::string dst(...)
>>>> range_copy(rng|to_upper|to_lower|to_upper, dst);
>>>>
>>> Me, I prefer the immutable and functional approach:
>>>
>>> to_upper(to_lower(to_upper(rng)))
>>>
>
> The super string was intended to be something
> familiar and easy to use for users.
>
> The functional syntax is not common in C++,

You don't use function calls?

> immutability will be feared as inefficient
> and the pipe syntax is completely novel.
>
> Something as
>
> superstring s;
> s.do_this().do_that();
>
> has a chance to be used in spite of having large API.

Maybe. It could also still be functional as (for strings) it is in
Python.

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