Re:Why Python is Slow: Looking Under the Hood
by yogsototh on Saturday May 10, 2014 @08:48AM
(#7725204)
The type system enforce some kind of usage.
myObject[ someFunction() ] = 1;
No compiler in the world would be able to detect if myObject.field should exists or not.
In a (good) type system oriented language, you have to declare that myObject is a Map, and therefore when you want to access "field" you know this access could be "Nothing". The type system alert you if you don't handle the "Nothing" value.
In a (good) type system oriented language, you have to declare that myObject is a Map, and therefore when you want to access "field" you know this access could be "Nothing". The type system alert you if you don't handle the "Nothing" value.