ints(), longs(), doubles() <was> Re: Ranges

Brian Goetz brian.goetz at
Fri May 3 10:26:47 PDT 2013

> I don't think it would. While "indexes" does capture the essence of a
> common use of this method, I think of [start, bound) as a range, and
> would look it up under that name. range and rangeClosed are very similar
> concepts; they should have similar names. The potential for confusion
> doesn't seem that significant to me.

With two forms, I agree.  But the next two questions are:
  - what about decreasing ranges?
  - what about decreasing closed/half-open ranges (whichever the above 

Now, if the answer to these incremental questions is "you lose", then 
range and rangeClosed are fine, and we're done.

More information about the lambda-libs-spec-observers mailing list