nil or null?
1
Name:
Anonymous
2007-05-20 5:40
ID:Mhif0e9p
nil or null?
discuss!
2
Name:
Anonymous
2007-05-20 5:42
ID:1Wusx/EU
Maybe.
3
Name:
Anonymous
2007-05-20 6:03
ID:QZ6YOxhf
mzero
4
Name:
Anonymous
2007-05-20 6:25
ID:yVx6GHYB
1-3
same person
5
Name:
Anonymous
2007-05-20 6:39
ID:1Wusx/EU
6
Name:
Anonymous
2007-05-20 7:25
ID:iMhUVknW
(void*)0
7
Name:
Anonymous
2007-05-20 8:35
ID:bgqMFbQZ
None
8
Name:
Anonymous
2007-05-20 8:46
ID:0NFNeO65
undef
9
Name:
Anonymous
2007-05-20 10:34
ID:cAWv7425
Nothing.
10
Name:
Anonymous
2007-05-20 11:10
ID:GT8R0dG4
#define null (void *) 0
foo() {
void * (*f)(void *);
f(null);
}
11
Name:
Anonymous
2007-05-20 11:27
ID:0NFNeO65
12
Name:
Anonymous
2007-05-20 15:06
ID:Heaven
*(void*)0;
13
Name:
Anonymous
2007-05-20 16:11
ID:bfmOw9Mx
(null)
14
Name:
Anonymous
2007-05-20 16:11
ID:Llq9OV4x
Maybe None. moral? use haskell
15
Name:
Lisa
2007-05-20 17:45
ID:yVx6GHYB
1-14
same person
16
Name:
Anonymous
2007-05-20 18:07
ID:D8dO6veq
None. With a capital N.
>>15
Possible, but unlikely.
17
Name:
Anonymous
2007-05-21 1:15
ID:qKVzdJtc
Just use a zero, if doing so makes the code hard to read it already fails.
18
Name:
Anonymous
2007-05-21 1:20
ID:Heaven
>>17
Using zero to say ``shit blew up'' is a retarded idea.
19
Name:
Anonymous
2007-05-21 2:37
ID:aBgQXGcw
_|_
20
Name:
Anonymous
2007-05-21 3:18
ID:kLlZ0i9r
>>17
int main() {
return 0;
}
Uh oh...
21
Name:
Anonymous
2007-05-21 3:44
ID:oySJV0Gq
()
22
Name:
Anonymous
2007-05-21 4:06
ID:sZcSISSA
Choice: nil NULL null undef None
I prefer NULL. It's the proper word for what you mean. CallWin32Shit(NULL, NULL, NULL, NULL). I like it capitalized because NULL is serious business, and it becomes easier to read.
23
Name:
Anonymous
2007-05-21 4:43
ID:gvM5K3Wi
#define FUCK NULL
SomeFunction(FUCK, FUCK, FUCK, FUCK, FUCK, FUCK);
24
Name:
Anonymous
2007-05-21 4:51
ID:aC8Go5RW
>>23
FUCK is what you say when you dereference a NULL pointer so the definition is a good one.
25
Name:
Anonymous
2007-05-21 9:29
ID:qKVzdJtc
>>20
So what? You're returning 0 from main. PROTIP: NULL == 0
26
Name:
Anonymous
2007-05-21 9:44
ID:Heaven
>>23 is Tourette's Complete.
27
Name:
Anonymous
2007-05-21 10:33
ID:Mxm/tkfu
28
Name:
Anonymous
2007-05-21 10:47
ID:KayGB2Om
>>27
I HAVE Tourette's, and so did I.
29
Name:
Anonymous
2007-05-21 12:12
ID:sZcSISSA
30
Name:
Anonymous
2007-05-21 12:20
ID:Heaven
>>26
COPROLALIA complete, ACTUALLY
31
Name:
Anonymous
2009-01-14 12:18
LISP
32
Name:
Anonymous
2010-11-02 21:02