[r6rs-discuss] >= should not act on subversion, but rather version

From: AndrevanTonder <andre>
Date: Thu, 14 Jun 2007 10:42:54 -0400 (EDT)

On Thu, 14 Jun 2007, Carl Eastlund wrote:

> I was about to say that takes away the ability to specify small
> subranges of a major version because, for instance, 6.0 may not be
> backwards compatible. But of course one can always write:
>
> (and (>= (5 4 5)) (< (6 0 0)))
>
> So I support this idea.

or even

   (and (>= (5 4 5)) (< (6))).

I would also like to point out another problem with the
current spec. One cannot express, as far as I can tell

   "version 6" (and only version 6)

The following will not currently work:

   (6)

since it will also match (6 0 1), (6 0 0 1), ...

With the alternative proposal, one could say

   (and (>= (6)) (<= (6)))

By the way, why not have versions be exact decimals
instead of lists, so one could write things like

   (and (>= 5.45) (< 6))

more concisely.

Andre
Received on Thu Jun 14 2007 - 10:42:54 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC