|
|
|
|
|
by tastyham
3048 days ago
|
|
Python has at least 4 ways to define a function: you can have a plain function, a bound instance method, a bound class method, and a lambda, which is similar to the same options js has. Python's type handling is much better, but that can be mostly avoided in JS by understanding and avoiding the cases where js typing sucks. Other than Python's superior type handling and standard library they seem like very similar languages to me. |
|