Stringly typed
-
This post did not contain any content.
If it’s not getting used in a mathematical function, I’m making it a string
-
Isn’t this more like evolution or even just optimisation? I mean it doesn’t seem like a fundamental shift (can be wrong, just checked it out quickly).
Sure, i think its just sql has not had any breaking version changes in like… ever?
-
I have. I quickly learned not to.
Tk is overlooked, though. It’s not pretty, and its approach is archaic, but it’s one of the few GUI toolkits that Just Works on every platform I tried it on with minimum fuss.
having used swing and modern js, i still prefer tk.
-
I fucking love tcl
The almighty
package require Expect
.
The muse of automation. -
tcl is pretty fun actually, it’s like bash on steroids.
for a preview of the insanity: anything surrounded by
""
is a string, with the variable expansion you’d expect. anything surrounded by{}
is also a string, but with no expansion. the equivalent in bash is the backtick string. but you don’t need to know that to write tcl. if you approach{}
as “code blocks” like in other languages, it just works. reason being that tcleval
s everything, constantly, attaching little tags to strings that tells the language how things are used, like “this string is an integer” or “this string is code and here is the result from last time it ran”. it’s madness and, weirdly, robust as hell. Xilinx writes all their tooling in tcl. SQLite started life as a tcl module, and it’s still the only api that is not provided by a plugin. -
Everithing is bytes.
… Little Endian or Big Endian?
-
I took great pains last week to convert a big python project to make it typed. (shoutout to MonkeyType)
It’s so much nicer to develop now…
Oh that’s a neat library. Type annotations in python are really nice, and you don’t have to add tooling like when you switch from JS to TS.
-
If it’s not getting used in a mathematical function, I’m making it a string
stoi and atoi got ur back, homie
-
Cat type?
-
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.