4 ms·
This is so predictable. 1. Author attacks premise of dynamic type systems argument. 2. Author presents premise for static type system (which is practically co
by ukj 7y ago
This is so predictable.
1. Author attacks premise of dynamic type systems argument.
2. Author presents premise for static type system (which is practically confluent/equivalent/equifinal to premise he just undermined).
>static type systems allow specifying exactly how much a component needs to know about the structure of its inputs, and conversely, how much it doesn’t. Indeed, in practice static type systems excel at processing data with only a partially-known structure, as they can be used to ensure application logic doesn’t accidentally assume too much.
Chances are you are wrong about 'how much you need to know' irrespective of your type system. Nobody gets it right the first time.
When we figure out that we were wrong about how much we need to know about the structure of our inputs (e.g we assumed too little) we do this thing we call... "extending our code" [1].
The question then is simply: which type-system is better at extensibility?
And I have no idea how to define "better".
[1] https://en.wikipedia.org/wiki/Extensibility https://en.wikipedia.org/wiki/Extensibility
- yakshaving_jgt 7y agoThis is so predictable. 1. HN commenter misses the point of the article. 2. HN commenter even misgenders the article's author.
- ukj 7y agoAt #1 you were stretching for a retort. At #2 it became apparent you've run out of relevant critique.
- dang 7y agoPlease don't reply to a bad comment with a worse one. That only poisons the thread further, and the site guidelines explicitly ask you not to do it. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- dang 7y agoPlease don't post in the flamewar style to HN. We're trying for something very different here. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html