Have Static Languages Won?
pointersgonewild.com
Have Static Languages Won?
1–10 of 120 posts
Re: Have Static Languages Won?
#2Re: Have Static Languages Won?
#3Which static language should supposedly have won?
I'd more argue it's a sign that C and its derivatives are ripe to be replaced.
Re: Have Static Languages Won?
#4Re: Have Static Languages Won?
#5Re: Have Static Languages Won?
#6Javascript is the last serious holdover of the DTL generation but even it is showing tendencies to be replaced by STL (Typescript, Dart). It will take a while, though, but the trend is clear.
Re: Have Static Languages Won?
#7Re: Have Static Languages Won?
#8Just because you don't have to explicitly write out the type does not make it any less static.
I believe that the usual arguments against languages with static typing such as verbosity and lack of flexibility are largely eliminated by the more modern languages such as Scala, Kotlin or Typescript (though typescript is more "optional typing" than static really).
Re: Have Static Languages Won?
#9The real appeal of what we today call "dynamic languages" is leaving type-checking up to the programmer, so in essence all programs are typed - just so happens that some don't formalize it inside the code.
A good compromise until then is gradual typing.
Re: Have Static Languages Won?
#10Which static language should supposedly have won?
It's absolutely not that specific static languages have "won". But rather that the latest crop of static languages have proved that the oft-cited downsides of static typing, e.g. type stuttering in declarations, can be pragmatically addressed by other means, e.g. type inference. As such, the cost differential of static languages over dynamic is reduced to near-zero, and all of the benefits remain.
I don't really see an argument, or really counter-argument, in the linked post. The author complains that the current crop of dynamic languages are badly implemented, but I'm not sure that holds water when you look at e.g. Clojure. They claim the chief advantage of static languages is IDE support/integration, but that seems like a strawman to me, a fringe benefit of the real, structural advantages of an explicit type layer.