HACKER Q&A
📣 mastrsushi

Why are dynamic type systems important?


Is there really a necessary use case? If a type is eventually expected to meet the parameter requirements of a procedure, what is the benefit? You could argue that in a language where all types are compatible with all operators this isn't true. But you can't always write code that's compatible with all trivial types.

Working with Python, a lot of times I find myself having to figure out the type anyway.

Is it just to make higher level languages more friendly to beginners, until they learn enough to realize data types do exist?


  👤 cratermoon Accepted Answer ✓
Simpler syntax, avoiding all the declaration code

Don't need to be compiled

Easier to keep changes small and local to the code changing

Unit tests need less boilerplate/mocking/stubs

Simpler metaprogramming

Easier generic programming