Re:Ask HN: Why choose a dynamically typed language?
by aristidb on Saturday August 07, 2010 @01:56PM
(#1583932)
You are confusing dynamic typing with dynamic code interpretation.
So there ARE statically typed languages with a REPL, for example Haskell.
And there are dynamically typed languages without a REPL - for example Perl (in the core distribution).
Static typing means that for example, a list can only contain one type of element. And because of these constraints, the compiler can find some errors that are not found otherwise.
I'm not a good programmer so sometimes I have tiny errors and such and being able to vim exec.py fix ./exec.py can help tons.
I do a good amount of things in matlab and must say that I use the cmd line (REPL?) infinitely along with my programs, it is just so easy for me to find solutions that way compared to something like C# and for someone that doesn't always know how a function works using it on the command line with documentation is great.