Re: The case for glob in SRFI 170
Duy Nguyen 13 Dec 2019 10:33 UTC
On Thu, Dec 12, 2019 at 4:01 AM Lassi Kortela <xxxxxx@lassi.io> wrote:
> > - Glob-like matcher is sometimes useful outside of traditional
> > filesystem.
>
> Good idea. This might fit a typeclass for tree traversal. We probably
> can't make zippers work?
> <https://en.wikipedia.org/wiki/Zipper_(data_structure)>
If there's interest, I probably could rip Gauche's glob implementation
out, make it translate glob patterns to srfi-115 sre and use some form
of readdir() from this srfi. Then we have a portable glob srfi.
Provided that Shiro gives permission of course, it's his code.
Not sure about zipper, but Gauche's glob is based on fold operation
and probably can work with something other than filesystems.
--
Duy