|
|
|
|
|
by throwbsidbdk
3492 days ago
|
|
I donno man, the longer I use typed languages the more I hate untyped ones, if only for the IDE help alone. All the newer static languages use type inference anyways so its not that common to need to specify explicitly. Besides, if you want to turn off the type system you can just cast to object or use "any" in the case of typescript. JavaScript's untyped insanity is also the main reason it's around 10x slower than c# or Java. Again js is a familiar example, but untyped "numbers" are HELL if you're trying to do any real math or implement a mathematical algorithm. I decided against porting one of my libs to JS for that reason alone. A lot to lose and nothing to gain with dynamic typing. |
|
Take a look at how fast javascript mutates, I'd argue that rate of mutation is one of the things you can do in a dynamically typed language. Java doesn't mutate like that, despite having many of the same ecosystem pressures, such as the pressure to "be good at everything" because it's so widely used.
That mutation often comes with unneeded parts and kludges, but the rate of mutation and change in the JS ecosystem has also been a huge positive. Still, TANSTAAFL and all that, I'm certainly not saying it's all good -- but I think you overstate it considerably when you say "A lot to lose and nothing to gain with dynamic typing"