chicken-hackers
[Top][All Lists]
Advanced

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

[Chicken-hackers] [PATCH] Move around {rename, delete}-file and a questi


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Move around {rename, delete}-file and a question about module for inexact
Date: Sun, 10 Sep 2017 17:33:16 +0200
User-agent: NeoMutt/20170113 (1.7.2)

Hi all,

Here's a straightforward patch to move those two procedures from
library.scm to file.scm.

I tried to move {file,directory}-exists? as well, but it seems
there are a few places which use it, and that would mean eval
will depend on file, irregex and posix, which I think is a bit
too heavy of a dependency.  I'm not sure how to fix this properly.

Also, a quick question: I noticed that finite?, infinite?, nan?
are in (scheme inexact) in r7rs.  Unfortunately, that module
also holds exp, sqrt, [as]sin, [as]cos, [as]tan and log, which
are all r5rs procedures.

Given that we're trying to put r7rs-like procedures under similar
namespace (but with scheme replaced by chicken) that creates a small
inconsistency; (chicken base) would hold finite?, infinite? and nan?
but they're really in (scheme inexact) in r7rs.  This might cause
confusion for users who are familiar with r7rs.  I don't know
how to solve that in a satisfactory way, unless we want to add a
module alias for it, so that some procedures are defined in
(chicken base) and scheme but re-exported by (chicken inexact).
What do you all think?

Cheers,
Peter

Attachment: 0001-Move-delete-file-and-rename-file-from-library.scm-to.patch
Description: Text Data

Attachment: signature.asc
Description: PGP signature


reply via email to

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