lundi 22 décembre 2014

Does the lack of type annotations really make code more readable?


I've been switching between static and dynamically typed languages (Java, C#, and Python). One of the supposed benefits of Python is that it makes the code more readable, BECAUSE it is less verbose (not requiring type annotations).


My experience has been quite the contrary. Knowing which types are used, at every level in the code, makes it way faster to understand what's happening.


So I guess since the opinions start to differ, and since I might not be "getting" how to use Python's lack of static typing properly, I'd like to ask for some concrete evidence (or hint) in the form of studies that support either one of these positions.


So far I know of this study: http://ift.tt/1x0oObo


which concludes (in my interpretation) that indeed type annotation do increase the speed of development.


So I'd really like to know what's the basis of the statement that the lack of type annotations makes it easier to read code.





Aucun commentaire:

Enregistrer un commentaire