That's because it has typed values, not variables
comments
They're typed as any only when you use typescript.
Me when I explicitly tell it to
What? Cmon'...
Promise
*(okay it isn't really a sin like any, but I wanted to wedge this into this thread somewhere)
Wait I gotta try this, don't even think you need the backspace
$ mkdir " "
$ ls
' '
I hate that this works
That's on you though. If you wanted you could have learned it and set up a static type checker.
Fun!
Sure it will, just set x = 5, and it's not longer a list.
Maybe so, but it's completely optional. I've been coding in python since the 2.7 days, and I still barely know the syntax for type hints in python.
Python has entered the chat...
If it was made by ai everything would be multicoloured and incohesive and every one of those donation boxes would have 3 bulletpoints
Lol. Of course it actually allocates your RAM. This is perfect.
It clearly says at the bottom that it was made by hand.
OTOH, Python has strong dynamic typing. I.e. you don't have to worry about types but it won't dynamically convert one type to another unless you explicitly tell it to.
Didn't know. The protocol is open and there are enough alternative server and client software for it to not be an issue. Sable makes matrix pleasant to use, even.
Fluxer seems to be coming along great.
We use typescript and try very hard not to return any... But 95% of out back ends api returns are type bob: Type || undefined
So we have to cater for that almost everywhere and half the time it feels like "strong typing" is a waste of effort.
But I still prefer the relative certainty of typescript
There's been typing in python for 10 years
Laughs in Python
I mean, technically all JavaScript variables are typed any
quantum computers be like
JavaScript's dangerously permissive
any
Excuse me? JavaScript doesn't have any. They're thinking of TypeScript's any.
This is revolutionary.
mkdir "\ "
Unlike traditional types such as string, number, or even JavaScript's dangerously permissive any, an ambiguous variable can contain any value, several values, or no value at all, depending on execution context, compiler mood, and whether anyone is currently debugging it.
It's different than loosely typed vars, which are not at all exclusive to Javascript