[phobos] std.ctype vs std.string

Jonathan M Davis jmdavisProg at gmx.com
Mon May 23 00:44:05 PDT 2011


On 2011-05-23 00:30, Walter Bright wrote:
> On 5/22/2011 10:25 PM, Jonathan M Davis wrote:
> > Would anyone be opposed to my moving the pieces of std.string which are
> > similar to std.ctype's functionality (hexdigits, letters, whitespace,
> > iswhite, etc.) into std.ctype and fixing the std.ctype functions so that
> > they're names are properly camelcased and return bool (obviously, I'd
> > leave in the old stuff as scheduled for deprecation)?
> 
> I understand the sentiment, but I don't like breaking existing code. It
> really annoys people who have to go back and constantly rename things in
> their production code.

Well, that's why the old versions would still be there, scheduled for 
deprecation. And that's why we should be doing it sooner rather than later. 
The sooner it gets done, the less code that it will break.

- Jonathan M Davis


More information about the phobos mailing list