Developers warn the new standard could introduce unprecedented uncertainty, while executives praise its flexibility and reduced documentation requirements.
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.
Because you are embarrassing yourself and noone has been kind enough to explain: the difference is that JavaScript will let you do: var x = 1 + "foo" and coerce the types, in python that’s an error.
Untyped python lets a name refer to different types over its lifetime (dynamic typing) but will not automatically convert types (which would be weak typing)
So chill that you felt the need to explain programming to me. If you didn’t care, you could have just moved on with your life, and scrolled past my comment.
Laughs in Python
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.
Sure it will, just set x = 5, and it’s not longer a list.
Me when I explicitly tell it to
That’s because it has typed values, not variables
whoosh
Because you are embarrassing yourself and noone has been kind enough to explain: the difference is that JavaScript will let you do:
var x = 1 + "foo"and coerce the types, in python that’s an error.Untyped python lets a name refer to different types over its lifetime (dynamic typing) but will not automatically convert types (which would be weak typing)
It was just a joke, chill out. Someone mentioned python so I made a joke about python. I have never used Javascript, and I have no desire too.
Fucking programmers sometimes…ya’ll take this stuff way too seriously.
Perfectly chill over here, but I didn’t find your comment funny. Shrug.
So chill that you felt the need to explain programming to me. If you didn’t care, you could have just moved on with your life, and scrolled past my comment.
There’s been typing in python for 10 years
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.
That’s on you though. If you wanted you could have learned it and set up a static type checker.
I guess, but I don’t use python for the static type checking. I also use c++, and that is strongly typed. No reason to be a dick.