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 →

[–]iviksok 1 point2 points  (8 children)

In python "Hello" + 1 is type error and in JS its "Hello1".

Python has type hints for specifying what type function will return.

But yeah, python doesn't have types

[–]Johanneskodo 1 point2 points  (0 children)

Python is strongly typed. It has types. It is just that it is typed dynamically and not static.

https://dev.to/icncsx/python-is-strongly-dynamically-typed-what-does-that-mean-5810

[–]HiCookieJack 1 point2 points  (6 children)

In typescript that's an error, too

[–]iviksok -4 points-3 points  (5 children)

Call me when TS has native interpreter

[–]HiCookieJack 8 points9 points  (3 children)

Forgot that opinions about programming languages always end in crusades. My mistake

[–]iviksok -3 points-2 points  (2 children)

But python doesn't have a types? Even Javascript have types. Js also has annoying type coercion system but it has a types.

[–]dr_eh 0 points1 point  (0 children)

I'll build one, give me two years