[r6rs-discuss] [Formal] Version reference syntax is overly complex.
>
> Suggested alternative #1
> ------------------------
>
> Change the <version reference> syntax to the following:
>
> Suggested alternative #2
> ------------------------
>
> Drop the whole library versioning idea from r6rs.
>
>
I'd like to throw in #3, simplified version numbering. A <version> is
an exact number. A <version reference> is a procedure taking a number
and yielding non-false if the version matches and is to be imported,
#f otherwise.
(import (mylib (lambda (version) (and (>= version 5.32) (<= version
6.24)))))
Plus possibly the following shortcut: If instead of a procedure a
number n is given, it is treated like (lambda (version) (>= version
n)), since this is the most commonly used case. Less confusing, but
as far as I can see as powerful as the current proposal. Just my 2
cents from the perspective of a Scheme user.
Regards,
Erich
Received on Sun Jun 17 2007 - 05:11:50 UTC
This archive was generated by hypermail 2.3.0
: Wed Oct 23 2024 - 09:15:01 UTC