ints(), longs(), doubles() <was> Re: Ranges
Tim Peierls
tim at peierls.net
Fri May 3 09:06:54 PDT 2013
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. *How* its implementation accomplishes this isn't that
important to me, whether as rangeClosed(0, Integer.MAX_VALUE) or something
else.
--tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20130503/c34d9efd/attachment.html
More information about the lambda-libs-spec-experts
mailing list