Re:Advanced programming languages
by DrSprout on Monday May 24, 2010 @02:38PM
(#1375353)
It's rather semantic, but I would differentiate typed from untyped by type checking vs. type being an inherent property of a variable.
So you have something in Scheme like:
(define foo 1)
(define bar "1")
And that is typed, the former being a number, the latter a string. If you try to subsequently do:
(+ foo bar)
the program will error out.
Contrast this with what I would consider an untyped language like Python or Perl, where the translation from string to number is done without any warnings showing up.
So you have something in Scheme like:
And that is typed, the former being a number, the latter a string. If you try to subsequently do: the program will error out.Contrast this with what I would consider an untyped language like Python or Perl, where the translation from string to number is done without any warnings showing up.