Is there a compiled* programming language with dynamic, maybe even weak typing?

Posted by sub on Stack Overflow See other posts from Stack Overflow or by sub
Published on 2010-03-31T17:24:25Z Indexed on 2010/03/31 17:33 UTC
Read the original article Hit count: 432

I wondered if there is a programming language which compiles to machine code/binary (not bytecode then executed by a VM, that's something completely different when considering typing) that features dynamic and/or weak typing, e.g:

Think of a compiled language where:

  • Variables don't need to be declared
  • Variables can be created doing runtime
  • Functions can return values of different types

Questions:

  • Is there such a programming language?
  • (Why) not?

I think that a dynamically yet strong typed, compiled language would really sense, but is it possible?

© Stack Overflow or respective owner

Related posts about programming-languages

Related posts about typing