What functionality does dynamic typing allow?
Posted
by
Justin984
on Programmers
See other posts from Programmers
or by Justin984
Published on 2012-10-03T20:04:16Z
Indexed on
2012/10/06
3:49 UTC
Read the original article
Hit count: 534
dynamic-typing
|static-typing
I've been using python for a few days now and I think I understand the difference between dynamic and static typing. What I don't understand is under what circumstances it would be preferred. It is flexible and readable, but at the expense of more runtime checks and additional required unit testing.
Aside from non-functional criteria like flexibility and readability, what reasons are there to choose dynamic typing? What can I do with dynamic typing that isn't possible otherwise? What specific code example can you think of that illustrates a concrete advantage of dynamic typing?
© Programmers or respective owner