4 ms·
> I think of dynamic typing in a language as a big pro and a big con at the same time, but it's one of the things that makes a language like JavaScript or closu
by aikah 10y ago
> I think of dynamic typing in a language as a big pro and a big con at the same time, but it's one of the things that makes a language like JavaScript or closure what it is.
Well JavaScript weak type system allows it to be shaped basically however the user want, so to an extent it's a language that make it easy to build something upon, like another languages or adapt any library from any other language.
JavaScript however definitely introduced functional programming to a generation of developers, no question.
But it was designed for extremely sloppy ones too. JS tries hard not to throw a type error.
> I don't fault anyone for wanting a car. But if you wanted a car, why not start off with a statically typed language
When I started programming I thought type declarations were getting in my way ... now I'm using Go which has one of the most rigid type system of all.
When I was using node I was like writing 10 000 lines of code a day ... now I have hard time making sense of what I wrote 3 years ago, let alone understanding someone else's JS codebase.