[phobos] std.regexp deprecation?
Jonathan M Davis
jmdavisProg at gmx.com
Sun Jul 15 12:55:26 PDT 2012
On Sunday, July 15, 2012 21:24:19 Dmitry Olshansky wrote:
> > On Sunday, July 15, 2012 20:50:10 Alex Rønne Petersen wrote:
> >> While we're on the subject of deprecations, what's going to happen to
> >> std.regexp? It was apparently deprecated in 2.055 which is quite a few
> >> moons ago.
> >
> > We're stuck with it right now. The problem is std.file.listDeps. listDeps
> > can't be removed yet, because it has an overload with functionality which
> > dirEntries doesn't have (something to do with glob matching IIRC), and
> > listDeps uses std.regexp (that exact overload IIRC).
>
> It was deemed that filtering dirEntries with filter!(x => match(x, reg)). I
> fail to see what's missing.
I don't remember the details, but you were in on that discussion, so if you
really think that dirEntries has what it needs, then we can give listDir the
boot. I just haven't killed it yet, because it was my understanding that
dirEntries was still missing that one piece of functionality.
> > Someone (cyershadow? who I think is Vlladimir?) was
> > supposedly going to create a pull request for it when it first came up,
> > but
> > that never materialized, and neither I nor anyone else has spent the time
> > to deal with it.
>
> I, for one, tried and got killed by forward reference bug hell. std.file has
> been plagued with these for a long time.
>
> The pull itself is a copy & paste with 1 line diff.
I don't ever recall what the exact issue was, so I have no idea what it takes
to fix it. I'd have to go digging through messages on githhub to find the
discussion. But forward references definitely suck, so I can understand if that
prevented a proper solution.
- Jonathan M Davis
More information about the phobos
mailing list