IntStream.sum
Doug Lea
dl at cs.oswego.edu
Wed Jan 16 10:04:37 PST 2013
On 01/16/13 12:53, Remi Forax wrote:
> Anyway, i'm clearly in minority and I don't think this issue deserve a long thread,
> so I'm fine with the long return value.
>
FWIW, I'm with you on this. I think that if people want to
avoid overflow using longs, then they should use longs!
Doing this as a convenience here and there just postpones the
inevitable, and makes it more likely that an overflow bug
elsewhere in people's code will stay hidden.
-Doug
More information about the lambda-libs-spec-experts
mailing list