Typing
One complaint about Python often is that it has no typing.
And, I agree, typing is a way to enforce some minimal documentation for any code (you know what type of parameters to pass to a function), and also to make sure that you can never accidentally pass the wrong type – at compile time.
So, the worst C++ code would still be better than the worst Python code, in this regard.
But, on the other hand, this means, even the best C++ code would still be complicated, and you’d have to mess with types and (therefore) templates. The best Python code however would simply document the types for its function and an exception would naturally be thrown when the type can’t be handled, without even having to put any extra code. Everything would stay simple and clear.
My opinion here: Static typing is good, dynamic typing is better.
![[a]](/pics/allefant.gif)
![[FSF Associate Member]](http://static.fsf.org/nosvn/associate/fsf-10922.png)
20000
ABPS
Allefant1
Allefant2
Allefant3
Allefant4
Allefant5
Allefant7
Battery
BlitzHack
BloboTron
Bob'n'Rob
Command Code
Donkey
Doomed
Dragonfly
EggHack
Evil
Feud
FruitWorm
Garbage
GnomeGuard
Hare
Hydra
Insanity
JetFighters
Kaos
Lawn
Lunte
Magnetotron
MarsFight
Nefertem
Owl
Photon
PI
PumpkinForest
Quest
Red, White & You
SIC
SoF
Squiddle
Swarm
Tom
Troll
Ultimatum
Velocity
Wave Rider
X
xmas
Yellow and Dangerous
Zombie Master
HexMap
IsometricProjection
VSync