R7RS-large aliases for srfis

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

R7RS-large aliases for srfis

Peter-2
Hello ;)

Would it be possible to add the r7rs-large aliases for existing srfis?
For example, srfi-1 should also be loadable as (import (scheme list)).
If there is no existing mechanism in kawa for aliases, something like
the following would suffice:

(define-library (scheme list)
  (import (srfi :1))
  (export xcons ...) ;; just re-export all identifiers
  )

chibi does exactly that ;)

Would be great to help with writing portable(r) code.

Greetings,

Peter
Reply | Threaded
Open this post in threaded view
|

Re: R7RS-large aliases for srfis

Per Bothner
On 1/18/19 10:50 PM, [hidden email] wrote:

> Would it be possible to add the r7rs-large aliases for existing srfis?
> For example, srfi-1 should also be loadable as (import (scheme list)).
> If there is no existing mechanism in kawa for aliases, something like
> the following would suffice:
>
> (define-library (scheme list)
>    (import (srfi :1))
>    (export xcons ...) ;; just re-export all identifiers
>    )
>
> chibi does exactly that ;)
>
> Would be great to help with writing portable(r) code.

It seems a bit premature, since the contents of r7rs-large is still
being decided and debated.

--
        --Per Bothner
[hidden email]   http://per.bothner.com/
Reply | Threaded
Open this post in threaded view
|

Re: R7RS-large aliases for srfis

Peter-2
> It seems a bit premature, since the contents of r7rs-large is still
> being decided and debated.

That is only true for parts, the Red Edition (for example (scheme list)
for srfi-1) has been finalized. It has been "standardised" (for whatever
that's worth) ;) Work on other future libraries continues.

Greetings, Peter