|
|
|
|
|
by 59nadir
3646 days ago
|
|
> 1) Dynamic typing is a subset of a static typing. This thing alone is enough. This is like saying that more syntax is better. No, cutting away from something can make it better. This argument is not at all enough to claim superiority. (C can be considered a subset of C++. Which is better?) > 2) Static typing provides more semantic options in both compile and run time, meaning that you can do more diverse things. Also quite a strong claim for superiority. "More diverse things" is ill defined. Which are they and why are they a net win? This is not at all a strong claim for anything, except "There is more". |
|
What?!?
You can build a dynamic type system on top of a static one. The opposite is impossible. What else is there to even talk about?
> "More diverse things" is ill defined.
It is very well defined. Static (i.e., compile time) metadata allows to infer constraints in compile time. Dynamic metadata is useless for deriving constraints. A very obvious consequence of this observation is that there will always be far more boilerplate with dynamic typing than with static.