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

Carl Eastlund cce at ccs.neu.edu
Thu Jun 14 10:14:46 EDT 2007


On 6/14/07, AndrevanTonder <andre at het.brown.edu> wrote:
> 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"
>
> 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))

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.

-- 
Carl Eastlund



More information about the r6rs-discuss mailing list