News for hackers. Stuff that matters.
Re:Ask HN: Why choose a dynamically typed language? by wwortiz on Saturday August 07, 2010 @01:50PM (#1583920)
As a non-programmer, in that I use programming for math/eng problems, the main advantage for a dynamic language like python is that you do not have to compile it.

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.

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.

Re:Ask HN: Why choose a dynamically typed language? by wwortiz on Saturday August 07, 2010 @04:24PM (#1584244)
And there is the bad programmer part :), thanks for the clarification.