Stringly typed
-
You can calculate n and n?
-
Just cast it. /s
I believe, that would mean that any 0 is equivalent to the null pointer, since the null pointer is just memory address 0…
-
Sure, i think its just sql has not had any breaking version changes in like… ever?
Yeah, that’s really one in a kind for such an important feature.
-
I believe, that would mean that any 0 is equivalent to the null pointer, since the null pointer is just memory address 0…
In C that would make sense yes.
-
Ah, the SQLite approach!
Me: Puts a boolean into sqlite
Me: Asks for that boolean
SQLite: “Here’s that int you asked for”
-
Which language can nil an
int
?Groovy will automatically convert integers into objects, as it sees fit. And one such case is when you assign
null
to an integer.There’s some more languages, which try to treat primitive types like objects, to make them more consistently usable. As I understand, nullability is a big part of the reason why it can’t be solved with syntactic sugar, so presumably this would be possible in all those languages.
If I’m not mistaken, Ruby is another one of those languages.