News for hackers. Stuff that matters.
Re:nil, Nil, NULL, NSNull by Groxx on Monday January 07, 2013 @03:17PM (#5022972)
I'd argue this is correct. If a is nil, it's not comparable. The alternative would be to throw an exception, which is pretty simple to emulate by checking.

Also, nils aren't allowed in the collection classes, so sorting with compare: will simply never encounter this case.

There are no comments on this comment yet.