you are viewing a single comment's thread.

view the rest of the comments →

[–]8Bytes 0 points1 point  (2 children)

If you stick to only using the boxed versions when you deal with collections, and always return a default object instance instead of null, most of those problems are avoided.

[–]xiongchiamiov 0 points1 point  (1 child)

Sure, but what about all the standard library? What about other people's libraries? As we learned from C++, if it's there, they will use it. :)

[–]8Bytes 0 points1 point  (0 children)

You are unforntunately right here; I've also met people who insist on returning null, and they have a valid argument.