On Fri, Oct 18, 2013 at 2:14 PM, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote: > One thing he missed is that there are untyped languages where everything > is the same type. If everything is the same type, that's equivalent to > there being no types at all. Examples include TCL and Hypertalk, where > everything are strings, and Forth, where everything are two-byte words. > > But I digress. Apart from those couple of little criticisms, I think it > is a very useful article to read.
Continuing the digression slightly: If everything's a string, how do you handle aggregate types like arrays? Are they outside the type system altogether (like in C, where an array-of-int isn't something you can pass around, though pointer-to-int is)? The only language I've worked with that has "everything is strings" is REXX, and it does some fancy footwork with variable names to do mappings, with a general convention around the use of stem.0 to create ersatz arrays (probably how JavaScript got the idea). ChrisA -- https://mail.python.org/mailman/listinfo/python-list