[nem-en] Re: [svn] r6670: nemerle/trunk: lib/narray.n
macros/Util.n
vc
vc at rsdn.ru
Sun Sep 24 19:02:47 CEST 2006
> IMHO this is inconsistent with methods in the System.Array class that
> throw ArgumentNullException when given null instead of an array.
It's solution (throw ArgumentNullException) is very inconveniently.
Return empty array protects the method users from some errors and allow
avoiding many unnecessary checks.
> While
> I agree this may be useful, I think the rule of least surprise should
> take precedence here -- people will expect these methods to throw
> NullRef at them.
May be describe this behavior in doc-comments?
More information about the devel-en
mailing list