views:

446

answers:

3

How is the association of type and parameter different in a dynamically typed language than a statically typed language?

+1  A: 

Wikipedia has a really awesome article on this. I'd really suggest reading that first if you haven't already.

popester
A: 

The important difference is that a statically typed languages checks the method calls and assignments at compile time whereas a dynamically typed language applies rather few checks to method calls and other assignments and primarily checks that operations are defined when invoked.

It isn't precisely the case that statically typed languages require types to be declared. Scala, for example, will often figure out types and allow you to skip the declaration, but everything still has a static type, albeit possibly of a rather sophisticated nature.

DigitalRoss
A: 

This should be helpful:

Dynamic type languages versus static type languages

karim79