4 ms·
Tooling and performance are two largest advantages. Disadvantage is more verbosity, but it's a trade-off. With dynamically typed languages I find that you stil
by thebluesky 14y ago
Tooling and performance are two largest advantages. Disadvantage is more verbosity, but it's a trade-off.
With dynamically typed languages I find that you still need to worry about types, but you have to trace through the code to figure out what type a particular variable is (esp. if you're not the only one working on a project). In a statically typed language that information is readily available.
- Peaker 14y agoThe claim static typing adds verbosity is a common fallacy. Haskell code is more concise than most dynamically typed languages.
- papsosouid 14y ago>Disadvantage is more verbosity How so? Java is verbose, but that isn't due to being statically typed, it is just a verbose language. Statically typed languages with type inference are no more verbose than dynamically typed languages.
- gnuvince 14y ago> Disadvantage is more verbosity, but it's a trade-off. When I was learning Haskell, I wrote a program to count the value of a cribbage hand. The code was half the length of an equivalent JavaScript program. The expressiveness of a language has more to do with the length of a resulting program than static or dynamic typing.
- eta_carinae 14y ago> Disadvantage is more verbosity Type inference cuts down the verbosity tremendously.