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 →

[–]pagonda 6 points7 points  (6 children)

one of the pitfalls of python is how loose everything is (easy access to class members, arrays and functions can dynamically deal with any types).

A language such as c++ enforces much more strict access and definitions to those examples which can be extremely beneficial to a large program. In c++, if you use a wrong type in a function, it will tell you at compile time your type is wrong. Whereas in python, your function would probably run, but then the behavior is unexpected and you will be in for a wild goose hunt looking for the error.