IntStream.sum
Kevin Bourrillion
kevinb at google.com
Wed Jan 16 09:59:04 PST 2013
(making it just one line longer)
On Wed, Jan 16, 2013 at 9:53 AM, Remi Forax <forax at univ-mlv.fr> wrote:
I like the long return value, because the chance of 63-bit overflow is so
>> incredibly less likely than 31-bit overflow.
>>
>
> given that most people will cast the result to int, this argument is moot.
Not at all, because it's *their* cast, in *their* code, which, if they are
actually conscientious, *their* static analysis tools and code reviewers
will challenge them over.
--
Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at google.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20130116/150e0118/attachment.html
More information about the lambda-libs-spec-experts
mailing list