[phobos] std.string deprecations
Jonathan M Davis
jmdavisProg at gmx.com
Sat Feb 11 03:22:26 PST 2012
On Saturday, February 11, 2012 12:10:47 Martin Nowak wrote:
> So adding special deprecation messages for aliases wouldn't get us very far
> because the cases of a simple move are rare?
Well, it would be nice, but I wouldn't expect it to be all that useful in
general. Pretty much the only time that we've just renamed functions is to fix
camelcasing, and we've done almost all of that. The few that we might change
that I'm aware of (e.g. the functions in std.string which still aren't
properly camelcased are those which use patterns, and there was some
discussion of replacing them with versions which used std.regex instead)
involve more than just fixing the casing. So, deprecated aliases aren't likely
to be very common in Phobos.
Also, if/once deprecated is improved to take a message as has been previously
discussed, there would be no need to special case aliases. You could just put
the information in the deprecation message like you would with any other
deprecation.
- Jonathan M Davis
More information about the phobos
mailing list