3 ms·
While I'm sure you understand the distinction, I think a lot of people miss this: When BCPL or B are said to be "untyped", it's not in the same sense as Lisp i
by ajross 17y ago
While I'm sure you understand the distinction, I think a lot of people miss this:
When BCPL or B are said to be "untyped", it's not in the same sense as Lisp is dynamically typed. These are languages for word-oriented computers, without byte-addressable memory. Everything the CPU can do is on a single word of the same size, and memory is just an array of them. So it's untyped in the sense that in C you can do math on both integers and pointers, and convert between them.
What C added was originally byte orientation, "typing" was just the glue required to make that work (so that e.g. an int was 2 chars on a PDP-11). Only later on were first class arrays and structures added to the "type system", and likewise the space of "pointers to types".