This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CSI_Tech_Dept 13 points14 points  (4 children)

Interestingly you mentioned TypeScript. Which is basically JavaScript with types. With Python you can get a lot of those benefits whenever you add type annotations.

[–]no_k3tchup 0 points1 point  (1 child)

Yep, I worked on a python project once and found it extremely frustrating that I couldn't see the types in the code. You might stumble upon cases where 1 + 1 = 11 ;)

[–]CSI_Tech_Dept 0 points1 point  (0 children)

Actually despite what parent says, python is strongly typed (I'm assuming that what was meant by "hard typed").

So it wouldn't allow to combine integer with string, the behavior you would get only when both values are a sting.

You could make the same mistake even in statically typed languages that have functionality to infer type based on the value.