Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder3.xlned.com!news2.euro.net!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'type,': 0.07; 'array.': 0.09; 'mess': 0.09; 'methods,': 0.09; 'programmer': 0.11; 'represents': 0.15; 'agree.': 0.16; 'either;': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mutated': 0.16; 'namespace,': 0.16; 'pointer,': 0.16; 'silly': 0.16; 'wrote:': 0.17; 'feb': 0.19; 'variable': 0.20; 'this:': 0.23; 'header:In-Reply-To:1': 0.25; 'object,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'correct': 0.28; 'actual': 0.28; 'array': 0.29; 'point': 0.31; 'johnson': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'method': 0.36; 'should': 0.36; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'apply': 0.39; 'your': 0.60; 'further': 0.61; 'positions': 0.68; '2013': 0.84; 'everything.': 0.84; 'rick': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=AF8KEK3lyqRL1SVgLCMWxLa29yQV2wquZwFSnhsNB1k=; b=YDFPXSroOPRiYnbZJTf2jKYmnt+EIOiNT20Cfjbs+qQVK9E/667hV6pJzEuYcGPpgq CCLm8Tvy/g0ZmvOGQ5ueTdljHEWYXnC9V0wQd1I7wxI5uJdXiTecDl3fPwQ7jkYEBZeb 8HEh5bjeBGjNPT+BqUrTZyH/a70psp6n9eqgX8JmdxXPD4hfWv/JdiC3ayG8NMYe+myG QUgRmFGUHk7YFExVkh3SdzMGTxkxDrkm+tgTDNwyNBEpNXjnxD4hHpdg4iPflyRqyNHA b2I/Bds1pHS+MdWcZjrZXVPR9aFN556yoGYYgmbCFvOSK1SOUzT2TQw8A+Gd2V65k8kL DZKQ== MIME-Version: 1.0 X-Received: by 10.58.253.161 with SMTP id ab1mr13300883ved.55.1360470023798; Sat, 09 Feb 2013 20:20:23 -0800 (PST) In-Reply-To: References: <680e50a4-6569-49cf-b369-0be450545d50@googlegroups.com> <5115c455$0$6574$c3e8da3$5496439d@news.astraweb.com> Date: Sun, 10 Feb 2013 15:20:23 +1100 Subject: Re: LangWart: Method congestion from mutate multiplicty 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360470027 news.xs4all.nl 6840 [2001:888:2000:d::a6]:42599 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38549 On Sun, Feb 10, 2013 at 2:54 PM, Rick Johnson wrote: > My point was this: All mutate methods should mutate "in-place", if the programmer wishes to create a mutated copy of the object, then the programmer should /explicitly/ create a copy of the object and then apply the correct mutator method to the copy. I agree. And we can go further and declare that there is only one data type, the simple integer; you have an infinite number of them, and all you can do is mutate them in place. You don't need variable names either; just have one single array that represents your whole namespace, and work with positions in that array. And don't bother with actual positions, even - with a single pointer, you could manage everything. Forget this silly mess of data types, methods, global functions, and so on. Let's simplify things massively! Ook. Ook! ChrisA