>python
hurr, "nothing" is the same as "the number 0"
>>60010093
I don't want to come off as defending the memesnek, but god damn you're retarded.
>>60010093
Are you retarded?
>>60010093
Ctard detected
Python has its issues. But this isn't one of those issues.
>>60010093
>>60010152
second post best post
>>60010093
There's a difference between an empty room and no room. 0 ≠ Null
>>60010258
unless you use C when NULL == 0
>>60010304
What is '\0' in c? Is it different from NULL?
I was halfway through a C book a few months ago. I need to pick it back up.
>>60010335
its actually just 0
C maps it to that to make it easy to add null terminators
>>60010093
Re tard C tard
>>60010345
>C maps it to that to make it easy to add null terminators
ah.
>>60010335
It's the character constant for the null character, which is used to signify the end of a string. However, it is guaranteed to have the integer value of 0 as well.
>>60010093
So THIS... is the power of C toddlers
>>60010093
Yeah, because it's correct. "None" in programming is different than "none" in English. In programming, it means "no answer".
>comparing objects of different types
>surprised with False
are you retarded?
>>60010384
I thought it meant "no memory address"
>>60010304#define NULL 0
NULL == 0
No shit sherlock.
Meanwhile in JavaScript land'\t\r\n' == 0
",,," == new Array(4)
'foo' + + 'foo' == 'fooNaN'
>>60010490
Might be as well, but in Python and some MLs, I'm only aware of it being the return value for functions without a return specified which are only used for their side effects. I believe Ocaml usually has unit returns in those cases though.
>>60010571
congratulations you have figured out that null is not a keyword in C
>>60010595
Some others:'foo' + + '' == 'foo0'
{} + [] == 0
[] + {} == "[object Object]"
>>60010689
Even better, NULL isn't even defined in C by default, it ships in stddef.h
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html#tag_13_47
>>60010834
yeah that's what it means when something isn't a reserved word
>>60010834
<stddef.h> is guaranteed to exist, so you can always use it.
But yes, he said it was not a keyword.
>>60010093
i'm dead
>>60010093
zero in C isn't null, it's just zero, there is no null in C.
pointers that point to zero memory address are invalid, and that is used as their non-set state.
>>60010093
That's a perfectly reasonable answer though.
>>60010595
>'foo' + + 'foo' == 'fooNaN'
This one makes sense. You're using the unary + operator to turn 'foo' into a number, but it's not a number so you get NaN.
Then you concatenate foo to NaN.
>>60013122
what ?
NULL == 0 == \0
>>60013438
What are you trying to say?
NULL is just a zero, a define
if you writeint x = NULL;
x = x + 1;
it will work just fine. There is no real null.
'\0' is a char that its int value is zero.
>>60010204
lol matrix bro cool leet hax
>>60013539
did matrix use the green fonts because leet h4xx0r5 used it or did leet h4xx0r5 started using it after watching the matrix
>>60013552
it was blue on black before the matrix, matrix stole the idea and made it green because of of that whole motif thing they had going
>>60013552
>>60013593
actually matrix l33t falling green on black text was inspired by 1995 ghost in the shell credits
>>60010093
>Compares Integer with Boolean
>Surprised by the result
What are you, retarded?
>>60013625
this
>>60013634
Cfags don't understand what a boolean is.
>>60013654
I'm Cfag and I understand.
Where's your god now?
>>60013634
How is None a boolean?
>>60010131
Anon Samma if I may,
0 can be a form of null, it can represent the lack of therefor by extension 0 could in theory be used in place of null, as 0 of something is considered nothing.
Thank you ^.^
>javascript
>>60013772
why has he written * instead of =?
>>60013539
>lol matrix bro cool leet hax
I was using "green on black" years before the Matrix. Back then I was struggling to learn this OS called "UNIX". And the default colors DE the school was using were burning my eyeballs. Although I don't remember if I selected the color scheme on my own or stole it from one of my classmates.
But I really did enjoy the movie.
And yes, your comment did rustle my jimmies.
>>60013811var x * 3;
'5' + x - x
does thisx = 0;
x = x * 3;
int('5' + str(x)) - x;
in pseudocode
>>60010093
>>60013900
kek
>>60010093
>>60010169
>>60010355
>>60010376
>>60013654
Samefagging Rust shill detected.