Need reviewer: JDK 8 CR for Support Integer overflow (original) (raw)
Stephen Colebourne scolebourne at joda.org
Fri Feb 3 18:00:11 UTC 2012
- Previous message: Need reviewer: JDK 8 CR for Support Integer overflow
- Next message: Need reviewer: JDK 8 CR for Support Integer overflow
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 3 February 2012 17:52, Eamonn McManus <eamonn at mcmanus.net> wrote:
I agree with Stephen Colebourne that brief implementation comments would be useful. But I disagree with his proposed further methods in Math (increment, decrement, int+long variants), which I don't think would pull their weight.
FWIW, JSR-310 currently has 18 non-test usages of increment/decrement, vs 42 uses of add. Less, but certainly used.
The real value in increment/decrement is that it becomes a simple mapping from operator to method a++ = increment(a) a-- = decrement(a) a + b = add(a, b) This makes it easier to see what the intent would have been were the real operators safe.
Stephen
- Previous message: Need reviewer: JDK 8 CR for Support Integer overflow
- Next message: Need reviewer: JDK 8 CR for Support Integer overflow
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]