On Tue, Mar 24, 2015 at 12:20 AM, Martin Buchholz <[email protected]> wrote: > > > On Mon, Mar 23, 2015 at 3:41 PM, John Rose <[email protected]> wrote: >> >> >> Eventually I think we'll have good enough library functions for range >> checks that we can avoid working with explicit range check expressions. >> Even experts get them wrong when subexpressions can overflow (for >> subsequence range checks). > > > Guava has Precondtions: > https://code.google.com/p/guava-libraries/wiki/PreconditionsExplained >
Well, if we go this way, and since we are talking about ranges, Guava also has Range<C>; which is pretty darn useful. Unfortunately no IntRange, LongRange or DoubleRange though... -- Francis Galiegue, [email protected], https://github.com/fge JSON Schema in Java: http://json-schema-validator.herokuapp.com Parsers in pure Java: https://github.com/fge/grappa
