Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:: [': 0.03; 'subject:Python': 0.05; 'list?': 0.07; 'objects.': 0.09; 'symbols': 0.09; 'cc:addr:python-list': 0.10; 'programmer': 0.11; 'suggest': 0.11; 'language': 0.14; 'subject:ideas': 0.16; 'element': 0.17; 'subject:] ': 0.19; 'bit': 0.21; 'object.': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'pass': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'c++': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; "we're": 0.30; 'implement': 0.32; 'could': 0.32; 'his/her': 0.33; 'rid': 0.33; 'shift': 0.33; 'received:google.com': 0.34; 'wrong': 0.34; 'add': 0.36; 'method': 0.36; 'enough': 0.36; 'why': 0.37; 'data': 0.37; 'mark': 0.38; 'mean': 0.38; 'object': 0.38; 'delete': 0.38; 'where': 0.40; 'subject:-': 0.40; 'think': 0.40; 'bring': 0.62; 'behavior': 0.64; 'our': 0.65; 'decided': 0.65; 'subject.': 0.65; 'computers': 0.69; 'teach': 0.69; 'benefit': 0.70; 'special': 0.73; 'universe': 0.84 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:cc:content-type; bh=ugAaTYlFehc02pfFSZnCNkgUWtLWrWp+8v6WdX6W0D4=; b=ZyUvLo8uIyMyP7G3YXMVNBWmlrfc3iAAfPKMZ4YFbavyPprTJBufXr7O1coVUbLJ7W yiKKFc2JTg9XWXVHhz95soUpl94hn/BhSVKTA4F8KwEOAkB91WrjcLnv1TO3ta5b0drE 1zFQmrZFOQttYRQRJjdETUiNplsOyIP9Xck+r/+hHBJNMZmkl7lNbJSt//furESowyRJ lQMkawPYm1CQpN5ontp8LDwwEUK23THqK+7sK1vbfDVg8xOpN5Bpk9ixSiHgVz9pHAJp ptiz3+rMgxdWua5SGwcFG4javLVQykfYh2xiUm/j2tXUS+ikFHFpGr9eDP+/OUb1wJAS fGJw== MIME-Version: 1.0 X-Received: by 10.194.9.166 with SMTP id a6mr27404213wjb.2.1363631340934; Mon, 18 Mar 2013 11:29:00 -0700 (PDT) In-Reply-To: References: <5146A76D.1020205@canterbury.ac.nz> Date: Mon, 18 Mar 2013 11:29:00 -0700 Subject: Re: [Python-ideas] Message passing syntax for objects From: Mark Janssen To: Benjamin Kaplan Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363631342 news.xs4all.nl 6870 [2001:888:2000:d::a6]:45463 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41446 > You're dreaming of a utopia where computers just read our minds and > know what we're thinking. So what if I can pass 42 into an object. > What do I intend to happen with that 42? Do I want to add the element > to a list? Access the 42nd element? Delete the 42nd element? Let the > object pick a behavior at random? Huh?, No the programmer has to think of how data interacts with his/her objects. It's just that *now* the language is wise enough to teach them to think about it. > So > what's the benefit of that over having the object implement the > __call__ method? You bring up an interesting subject. I think you could get rid of the __call__ special method on objects. I think this is the wrong view into the object universe or *data ecosystem*. > Also, why would we re-use the bit shift operators for message passing? > Just because C++ decided to overload the existing operators to mean > reading into and writing out of a stream doesn't mean it's a good > idea. You're right, perhaps there's a better set of symbols that suggest "moving data". Mark