[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: |
Mario Domenech Goulart |
Subject: |
Re: [Chicken-hackers] [PATCH] Move some low-hanging fruit from posix.scm to file.scm |
Date: |
Thu, 15 Jun 2017 04:21:46 +0200 |
Hi,
On Wed, 14 Jun 2017 16:23:29 -0400 John Cowan <address@hidden> wrote:
> 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.
canonical-path was removed in 4.6.0. Maybe you mean normalize-pathname?
All the best.
Mario
--
http://parenteses.org/mario