commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien Brisard <>
Subject Re: svn commit: r1353140 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/util/
Date Mon, 25 Jun 2012 05:30:08 GMT
Hi Gilles,

> Exactly: If a user does not care about the callback, he shouldn't even have
> to look at the second constructor, even less wonder about the consequence of
> setting it to null.
Well, it could also be argued that default parameters are *evil* (I do
think they are), and that explicitly setting a parameter to null
forces the user to think about his decision. However, our views are
more on the philosophical plane, and I think we could argue for ages
without coming to a conclusion... Therefore...

> No ticket is necessary (IMHO). I'm fine with just reverting, then adding the
> precondition block: it will clearly express that a callback *is* necessary.
> [Thanks for spotting that bug.]
... reverted to previous implementation of constructors (with
additional check for null) in r1353386. Thanks for reviewing this
commit which was not in line with the remainder of Commons-Math3.
Please note that at some point, I will have to take a look to
iterative linear solvers, where (as far as I remember) I allowed the
specification of a null preconditioner (sorry, sorry, sorry!).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message