What can I do with dynamic typing that I can not do with static typing
- by Justin984
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 why it's useful. I keep hearing about its "flexibility" but it seems like it just moves a bunch of compile time checks to runtime, which means more unit tests. This seems like an awfully big tradeoff to make for small advantages like readability and "flexibility".
Can someone provide me with a real world example where dynamic typing allows me to do something I can't do with static typing?