IntStream.sum (original) (raw)

Remi Forax forax at univ-mlv.fr
Wed Jan 16 05:24:58 PST 2013


On 01/16/2013 02:15 PM, Remi Forax wrote:

ok, same sentences, but in english that time:

On 01/16/2013 02:14 PM, Joe Bowbeer wrote:

Normally I would side with the stricter argument in order to avoid potential harm, but in this case I don't see the problem. the problem is that it doesn't solve the overflow problem, it just hides it more. Code quality tools will flag the (int), right? yes, raising the number of false positive warnings. And long can hold the result of MAXINT additions? stream are sized by a long if there a size or can be infinite (still think it's a bad idea BTW) so it solves nothing. Rémi

Rémi



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