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

AndrevanTonder andre at het.brown.edu
Thu Jun 14 10:42:54 EDT 2007


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



More information about the r6rs-discuss mailing list