[Top][All Lists]

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

Re: #1735: Strip away prefix when importing

From: Chicken Trac
Subject: Re: #1735: Strip away prefix when importing
Date: Thu, 22 Apr 2021 03:32:14 -0000

#1735: Strip away prefix when importing
            Reporter:  Idiomdrottning  |      Owner:  (none)
                Type:  enhancement     |     Status:  new
            Priority:  minor           |  Milestone:  someday
           Component:  core libraries  |    Version:  5.2.0
          Resolution:                  |   Keywords:
Estimated difficulty:  medium          |

Comment (by evhan):

 Ticket #988 is back I see. :)

 This is interesting stuff, I just wanted to say that if we go this
 direction I'm also in favour of a more general mechanism for import
 rewriting, rather than stacking up single-use forms like "drop-prefix",
 "add-prefix", and so on. Rather than something regex-based, though, I
 think some expansion-time method by which arbitrary transformations could
 be applied to the imported identifiers would be better, if these can be
 written as normal Scheme code similar to the way ER macros work. Perhaps
 this could even take the form of some helper procedures that make
 rewriting import specifications *within* the ER macro framework easy?

 Regarding importing "import" itself, that's not likely to work without
 other changes since that is one of the few (possibly the only?)
 identifiers that is treated unhygienically in places, to pull things into
 an empty syntax environment. Ideally it would be nicely shadow-able, but I
 don't think that's how it is today.

 Just my two cents, otherwise I'd echo what megane has said above.

Ticket URL: <>
CHICKEN Scheme <>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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