|
|
|
|
|
by rewma
1714 days ago
|
|
> The problem is that I have perfectly valid collections of data (...) and static typing systems make this very powerful and legitimate task a nightmare. What leads you to believe that static typing turns a task that essencially boils down to input validation "a nightmare"? From my perspective, with static typing that task is a treat and all headaches that come with dynamic typing simply vanish. Take for example Typescript. Between type assertion functions, type guards, optional types and union types, inferring types from any object is a trivial task with clean code enforced by the compiler itself. |
|