chicken-janitors
[Top][All Lists]
Advanced

[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: Wed, 21 Apr 2021 12:28:04 -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 megane):

 > In general I'm not sure this change is desirable, especially as it
 introduces nondeterminism (what if a module exports both foo and my-foo,
 and we strip the prefix "my-"?)

 Shouldn't it in that case behave like {{{(import (rename foo (foo bar)}}}
 when there's already {{{bar}}} in {{{foo}}}, i.e. silently shadow the
 original {{{bar}}}?

-- 
Ticket URL: <https://bugs.call-cc.org/ticket/1735#comment:7>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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