Re:Why I Prefer Dynamic Typing Over Static Typing (2017)
by erik_seaberg on Wednesday February 20, 2019 @06:55PM
(#19213287)
Any static constraint is likely to rule out good and bad programs. The tradeoff is how irreplacable those good programs are vs. how dangerous those bad programs are. "endofunction over either integers or endofunctions over integers (or over endo…)" is cute but I wouldn't lose a lot of sleep from underconstraining that domain.
Programs have (static) types, data does not. Static typing removes correct programs from the language. Try this in some ML-like language:
If you transcribe this to (e.g.) Lisp, it will return the number 42. The program is short, simple, and safe, but well-regarded static type systems can't cope.