[Issue 4166] Remove/deprecate std.string.chop

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 9 09:22:49 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4166


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


--- Comment #2 from bearophile_hugs at eml.cc 2010-05-09 09:22:47 PDT ---
std.string.chomp removes an optionally present trailing newline (that can be
different on different operating systems, one or two chars, there are three
variants of it). I will keep needing chomp functionality in future, and this is
not a job fit for generic ranges/algorithms. So you are wrong.

I think Andrei agrees with me that Phobos2 can keep a std.string that contains
things designed to be fit for strings. Some of such things can be just light
wrappers around algorithms and ranges, but some of them are specific for
strings.

An API for some handy string functions will be necessary still. And such API
will be probably similar to the current one. So this bug report is valid still,
because I think std.string.chop is not good and can be removed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list