Chris Ballard <wo*********@typeYAHOOhere.com> wrote:
Sorry I was making the assumption that xyz is an internally created method,
and my response was from the standpoint of the implementor of such a method.
Obviously if this method is part of a third party library, then anyone
calling into it will need to consult the related documentation to find out
what values are appropriate for indicating an "empty" parameter.
I don't think the third-party/internal divide makes any difference, to
be honest. In some cases it's a good idea to use an empty array for
parameters, in some cases null is more appropriate. It depends on
whether you want to pass an empty collection of values or say "I have
no collection to pass, not even an empty one". That decision needs to
be made both for internal methods and public ones.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too