chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] Move some low-hanging fruit from posix.scm


From: John Cowan
Subject: Re: [Chicken-hackers] [PATCH] Move some low-hanging fruit from posix.scm to file.scm
Date: Wed, 14 Jun 2017 16:23:29 -0400


On Wed, Jun 14, 2017 at 4:14 PM, Peter Bex <address@hidden> wrote:

What should we do with ##sys#glob->regex?  I think it's useful
enough to expose to the user, which conveniently allows us to get
rid of the ##sys# prefix too.  But in which unit does it belong
the most?  Personally, I think file might make more sense, as
it's strictly not an irregex procedure, and it belongs with "glob".

On the other hand, it doesn't actually hit the file system; it's an
abstract operation over data-structures only, without any side effects.

The same is true of the pathname-* procedures.  glob->regex should be
exposed, and it belongs with them.

IMO, canonical-path belongs in files also; it too is an abstract operation, though system-dependent.

-- 
John Cowan          http://vrici.lojban.org/~cowan        address@hidden
        "You need a change: try Canada"  "You need a change: try China"
                --fortune cookies opened by a couple that I know 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]