Twelve Years of Service
Posts: 3,256
Threads: 163
Points: 0NSP
RE: Python 02-25-2013, 06:53 AM
#12
Actually it is because of questions like this that I think learning statically typed languages is better for beginners than dynamic languages like Python. Python might seem easy on the surface, but how shall a beginner grasp the concept of types, when there aren't any declared? Not in functions, nor for variables. There are so many beginner questions struggeling with that.
But that's only my 2 cents.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.
•
Twelve Years of Service
Posts: 1,881
Threads: 82
Points: 1NSP
RE: Python 02-25-2013, 07:32 AM
#13
Dynamically typed languages tend to be more expressive, so you can say more, and say it more clearly, with less text.
The important discussions about typing systems (mostly about scalability and stability) are over projects that require large teams or several teams working for several months to be completed, or about maintainability once the original teams handed the project to maintenance.
Static typing is, among other things, a form of enforced documentation, and that is a good thing to have when you need to approach source code that nobody has changed in a while. Static typing may guide you about the rules you must know to change what you need to change, while a most systemic understanding may be required to change a program with dynamic typing.
outside source quotes quotes
•
Twelve Years of Service
Posts: 3,256
Threads: 163
Points: 0NSP
RE: Python 02-25-2013, 09:03 AM
#14
-thread moved to programming section and marked as solved-
@LiveFaster: I agree with your explanation. But I still think that people who start to program with statically typed languages tend to understand the type system better, because they are forced to think about the types they use, get, return and declare.
Once you are used to types, it is very easy to grasp Python and to understand such errors as above.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.
•