News for hackers. Stuff that matters.
Re:nil, Nil, NULL, NSNull by mpweiher on Monday January 07, 2013 @05:44PM (#5023731)
"Zero is not nothing."

Yes. In a computer, there is nothing that is nothing. You always have something that signifies nothing.

C pointers also do not hold "nothing". What you refer to as "nothing" is the address 0, which is a special value that the language makes certain guarantees about that you interpret as being "nothing" because of these guarantees.

Re:nil, Nil, NULL, NSNull by mikeash on Monday January 07, 2013 @06:00PM (#5023815)
> C pointers also do not hold "nothing". What you refer to as "nothing" is the address 0, which is a special value that the language makes certain guarantees about that you interpret as being "nothing" because of these guarantees.

Of course. The point is that pointers have that "special value", while primitives do not. The integer value 0 is not the same thing.

Re:nil, Nil, NULL, NSNull by bostonpete on Monday January 07, 2013 @06:11PM (#5023855)
You're both right. Zero does mean nothing. Also, zero is not a special value for integers like it is for pointers. Enough of this self-righteous debate.
Re:nil, Nil, NULL, NSNull by mpweiher on Monday January 07, 2013 @06:18PM (#5023888)
Dude, that is exactly what I was saying...
Re:nil, Nil, NULL, NSNull by mpweiher on Monday January 07, 2013 @06:29PM (#5023935)
I never claimed it was. Sheesh.