Re:State of Clojure 2020
by dkersten on Friday February 21, 2020 @06:12AM
(#22382335)
> but my data is dynamic
In my experience, most dynamically types code makes assumptions about structure that may not hold later (better have tests!) and when it breaks some kind of validation is needed anyway to select between the correct version of the different dynamic options. In static languages this is simply typically done sooner, since the type system requires it to parse the data. (Or itβs in variants that are accessed without checking that the accesses are valid, sigh)
In my experience, most dynamically types code makes assumptions about structure that may not hold later (better have tests!) and when it breaks some kind of validation is needed anyway to select between the correct version of the different dynamic options. In static languages this is simply typically done sooner, since the type system requires it to parse the data. (Or itβs in variants that are accessed without checking that the accesses are valid, sigh)