3 Oct
2013
3 Oct
'13
3:35 p.m.
On 3 October 2013 16:04, Matt Calabrese
The point is, even if you happen to throw in a particular implementation, if the precondition is such that the constructor cannot take a null pointer, then the throwing behavior is never to be relied upon by the user anyway.
It shouldn't be a pre-condition. The intent of the class is to guarantee that it is never null, it shouldn't assume that users are smart enough to get that right, because we really aren't.