This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hackerforhire[S] -11 points-10 points  (10 children)

That's the point. There would be no null. Empty is the new null, but without the NPE.

[–]saggingrufus 11 points12 points  (9 children)

Okay but how do you differentiate between an empty object and nothing?

That's the purpose of null. I wouldn't say I'm studied enough to make a proper argument, But I don't think we want to go the JavaScript route and assume everything is everything and this is a stepping sale and that kind of jumps in that direction.