by napsterbr · 9y ago · 0 comments
It's a tradeoff, as everything else in computer science, and one that has worked for us. Can't recommend both erlang and dialyzer enough :)
Typed code may be slower and more cumbersome (to some) to write in the first place, but is usually much easier to maintain in my experience.
Now, I think that type inference for local variables can be nice (especially if you have good IDE that allows you to see the inferred type).
I once wrote a 600-700 line application in PowerShell. I found myself adding a few type annotations, and I expect that a program any bigger than that (especially if more than one person started working on it) would benefit from a policy of always adding type annotations.