That is an ignorant concept which conflates the implementation level with the program's abstraction.
At the implementation level, there exist storage locations (which we might call "value cells"). These can hold any value and so in a sense they have one type.
The abstract nodes of the program, its expressions, have a type we can reason about. Often a single type that can be known without executing the program..
Static functional languages, too, have typeless value cells in their implementations: word-sized units of storage that can point to anything and may have type tags, gc bits and whatnot.
The difference is that nodes of the abstract program are checked.
Dynamic languages have type inference implementations also. The situation is not so strict that an uncheckable program may not be executed, though.
"Untyped" is a political word used by type theorists in computer science to refer to computing paradigms which do not traverse the nodes of the program to assign each one of them a single unambiguous type before proceeding to execution.
It means Not True Scotsman Typed.
You can't think of it as "lacking type information"; watch out: that's a trap laid to reveal you as a n00b who doesn't speak the lingo.
Replies (3)
Replies (1)
At the implementation level, there exist storage locations (which we might call "value cells"). These can hold any value and so in a sense they have one type.
The abstract nodes of the program, its expressions, have a type we can reason about. Often a single type that can be known without executing the program..
Static functional languages, too, have typeless value cells in their implementations: word-sized units of storage that can point to anything and may have type tags, gc bits and whatnot. The difference is that nodes of the abstract program are checked.
Dynamic languages have type inference implementations also. The situation is not so strict that an uncheckable program may not be executed, though.
I understand Clojure is strongly typed too.
It means Not True Scotsman Typed.
You can't think of it as "lacking type information"; watch out: that's a trap laid to reveal you as a n00b who doesn't speak the lingo.