[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 08:24:39 -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 Idiomdrottning):
Why did you change the difficulty since there is an implementation?
But implementing it as a macro might work.
Here is one that works:
https://idiomdrottning.org/import-sans.scm
It has a bit of a different interface.
Instead of
(import (sans filepath "filepath:") (sans irregex "irregex-"))
You go
(import import-sans)
(import-sans filepath: filepath)
(import-sans irregex- irregex)
i.e. separate calls.
I guess I could wrap, walk, and shadow the import form so that I could
instead implement something like
(import import-sans)
(import (sans filepath: filepath) (sans irregex- irregex) shell srfi-42
(chicken pretty-print))
for example. If that is possible and/or a good idea. Also (import import-
sans) looks dorky so another name would be fine. Maybe just sans.
--
Ticket URL: <https://bugs.call-cc.org/ticket/1735#comment:5>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.
- Re: #1735: Strip away prefix when importing, Chicken Trac, 2021/04/04
- Re: #1735: Strip away prefix when importing, Chicken Trac, 2021/04/04
- Re: #1735: Strip away prefix when importing, Chicken Trac, 2021/04/04
- Re: #1735: Strip away prefix when importing, Chicken Trac, 2021/04/11
- Re: #1735: Strip away prefix when importing, Chicken Trac, 2021/04/12
- Re: #1735: Strip away prefix when importing,
Chicken Trac <=
- Re: #1735: Strip away prefix when importing, Chicken Trac, 2021/04/21
- Re: #1735: Strip away prefix when importing, Chicken Trac, 2021/04/21
- Re: #1735: Strip away prefix when importing, Chicken Trac, 2021/04/21
- Re: #1735: Strip away prefix when importing, Chicken Trac, 2021/04/21
- Re: #1735: Strip away prefix when importing, Chicken Trac, 2021/04/21
- Re: #1735: Strip away prefix when importing, Chicken Trac, 2021/04/22
- Re: #1735: Strip away prefix when importing, Chicken Trac, 2021/04/22