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

From: AndrevanTonder <andre>
Date: Thu, 14 Jun 2007 09:44:47 -0400 (EDT)

With the current version reference porposal, it is not clear to me
how I would concisely express the very common case of an interval of
versions, e.g.,

   "Any version equal to or later than 5.45"

This would not work:

   ((>= 5) (>= 4) (>= 5))

since version 5.94 would not match. Neither would version 6.1, etc.

I could write

   (or ((>= 5) (>= 4) (>= 5))
       ((>= 5) (>= 5))
       ((>= 6)))

but this seems rather unwieldy for such a simple concept.

I would propose instead letting the >= and <= act on the whole version, not the
subversions, so I could express the above as

   (>= (5 4 5))

Andre
Received on Thu Jun 14 2007 - 09:44:47 UTC

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