A Pragmatic Case for Static Typing

Nobody nobody at nowhere.com
Mon Sep 2 21:10:37 EDT 2013


On Mon, 02 Sep 2013 09:44:20 +0000, Steven D'Aprano wrote:

> One factor I don't see very often mentioned is that static typing 
> increases coupling between distant parts of your code. If func() changes 
> from returning int to MyInt, everything that calls func now needs to be 
> modified to accept MyInt, no matter how similar MyInt is to int. You have 
> to make changes just to satisfy the compiler.

Not if the language has type inference (e.g. Haskell, or C++ templates).




More information about the Python-list mailing list