Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'read.': 0.03; 'subject:Python': 0.06; 'aggregate': 0.07; 'arrays': 0.09; 'type,': 0.09; 'missed': 0.12; 'arrays?': 0.16; 'fancy': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mappings,': 0.16; 'subject:Java': 0.16; 'tcl': 0.16; 'words.': 0.16; 'all.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'examples': 0.20; 'string,': 0.24; "i've": 0.25; 'equivalent': 0.26; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; '(like': 0.30; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'languages': 0.32; 'worked': 0.33; 'continuing': 0.33; 'fri,': 0.33; 'subject: (': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'useful': 0.36; 'being': 0.38; 'convention': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'apart': 0.72; 'article': 0.77; '(probably': 0.84; 'around,': 0.84; "everything's": 0.84; 'rexx,': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Xhv8Xdo7XKUbTbMEwzvumby3+luiVdKQGboK5Kv2DM4=; b=lQAQL4meRvVdgEyA48rs//wQXnQxobSA0dAiHYpWGUoEZdCR+FYKZFSoX2+EhmzxFA A68tfPREUsrFcfvdk6jBMKhLzwIu+lBRJ/W0h+2g/xk6gTf3fhcslA1vB30zb0RSMuu+ 0YSFOqozmDhRk/DRcJcy8Ml0LDTX3H4acUyxMU0631t+LFuB7rL6h6vPUkLkTPgLIW9R 5jxrH4p0MJ8aj9aAe1apas36JQyjJpKQz2jgR4KRzT67RGiVjbtDcFP0PTb3QkZVj8bJ 6VFMj5zVje8Ijr5DTWPBPN4FG9Pqrce6NzsIDzwN97+Wg//h7z0oyikLx8mQkOB86xlf Ik3w== MIME-Version: 1.0 X-Received: by 10.66.163.2 with SMTP id ye2mr753312pab.170.1382069557061; Thu, 17 Oct 2013 21:12:37 -0700 (PDT) In-Reply-To: <5260a781$0$29981$c3e8da3$5496439d@news.astraweb.com> References: <1df612d9-27a0-4f06-9b0c-a8d7fd9bf257@googlegroups.com> <5260a781$0$29981$c3e8da3$5496439d@news.astraweb.com> Date: Fri, 18 Oct 2013 15:12:36 +1100 Subject: Re: Python was designed (was Re: Multi-threading in Python vs Java) From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382069566 news.xs4all.nl 15912 [2001:888:2000:d::a6]:51951 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57029 On Fri, Oct 18, 2013 at 2:14 PM, Steven D'Aprano 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