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

Paul Sandoz paul.sandoz at oracle.com
Fri May 3 09:11:48 PDT 2013


On May 3, 2013, at 6:06 PM, Tim Peierls <tim at peierls.net> wrote:

> On Fri, May 3, 2013 at 10:53 AM, Paul Sandoz <paul.sandoz at oracle.com> wrote:
> On May 3, 2013, at 3:00 PM, Tim Peierls <tim at peierls.net> wrote:
>> I've missed something. How will the user see a difference between ints() implemented as a closed range vs. a half-open range?
> 
> The closed range will be for all non-negative int values, where as the half open will be for all non-negative int values except Integer.MAX_VALUE.
>  
> If you were originally asking whether ints() should include MAX_VALUE, then my answer is yes.

I was :-)

Paul.

> How its implementation accomplishes this isn't that important to me, whether as rangeClosed(0, Integer.MAX_VALUE) or something else.
> 
> --tim



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