|
Boost : |
From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2006-07-06 03:39:50
"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++,
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.
The problematic operations as German ß -> SS -> ss
can be handled without problem in this model.
/Pavel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk