Phobos - breaking existing code
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Sun Nov 30 18:11:50 PST 2014
On Sun, 30 Nov 2014 18:01:34 -0800
"H. S. Teoh via Digitalmars-d" <digitalmars-d at puremagic.com> wrote:
> On Sun, Nov 30, 2014 at 03:03:37PM -0800, Walter Bright via Digitalmars-d wrote:
> [...]
> > Keeping around a deprecated alias translating the old symbol to the
> > new one is a good approach. For a more detailed message, instead of
> > the @disabled enhancement, a simpler way is:
> >
> > void fnmatch()(...) {
> > static assert(0, "use globMatch instead of fnmatch");
> > }
> [...]
>
> That's a good idea.
>
> Keep in mind, though, that in this particular case, std.path was
> essentially replaced wholesale, so does that mean that every time we
> replaced a module, we have to keep the entire old set of symbols around
> basically forever?
this whole thing is a work for dfix, i believe. there's no need to keep
alot of junk in libraries where dfix can do much better work.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141201/530c8871/attachment.sig>
More information about the Digitalmars-d
mailing list