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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:: [': 0.03; 'syntax': 0.03; 'languages,': 0.04; 'subsequent': 0.04; 'subject:Python': 0.05; 'objects,': 0.07; 'python': 0.09; 'high- level': 0.09; 'thread,': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'language,': 0.11; 'programmer': 0.11; 'language': 0.14; "hasn't": 0.15; 'passing': 0.15; '*i*': 0.16; 'bit.': 0.16; 'cc:name:python list': 0.16; 'clear.': 0.16; 'hierarchy': 0.16; 'invoking': 0.16; 'subject:ideas': 0.16; 'syntax,': 0.16; 'wrote:': 0.17; 'subject:] ': 0.19; 'bit': 0.21; 'assuming': 0.22; 'new,': 0.22; 'pascal': 0.22; 'sorry,': 0.22; 'universal': 0.22; "haven't": 0.23; "i've": 0.23; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'environment.': 0.27; "d'aprano": 0.29; 'enforce': 0.29; 'oop': 0.29; 'steven': 0.29; 'case,': 0.29; 'objects': 0.29; 'this.': 0.29; "i'm": 0.29; 'that.': 0.30; 'usually': 0.30; 'function': 0.30; 'problem.': 0.32; 'hopefully': 0.33; 'shift': 0.33; 'everyone': 0.33; 'languages': 0.33; 'received:google.com': 0.34; 'wrong': 0.34; 'list': 0.35; 'from:addr:googlemail.com': 0.35; 'pm,': 0.35; 'there': 0.35; 'really': 0.36; 'but': 0.36; 'programmers': 0.36; 'method': 0.36; 'should': 0.36; 'too': 0.36; 'does': 0.37; 'level': 0.37; 'communicate': 0.37; 'rather': 0.37; 'mark': 0.38; 'comment': 0.38; 'mean': 0.38; 'object': 0.38; 'sure': 0.38; 'skip:" 10': 0.40; 'subject:-': 0.40; 'think': 0.40; 'your': 0.60; 'link': 0.60; 'most': 0.61; 'spam.': 0.61; 'telling': 0.61; 'director': 0.62; 'expert': 0.62; 'between': 0.63; 'necessarily': 0.63; 'more': 0.63; 'readers': 0.65; 'afraid': 0.66; 'experts': 0.66; 'integrated': 0.66; 'apologize': 0.67; 'fact,': 0.69; 'low': 0.83; '2013': 0.84; 'clarifies': 0.84; 'concept,': 0.84; 'everything.': 0.84; 'moves': 0.84; 'approach.': 0.91; 'erlang': 0.91 X-Received: by 10.50.185.200 with SMTP id fe8mr24068igc.0.1363631093026; Mon, 18 Mar 2013 11:24:53 -0700 (PDT) Newsgroups: comp.lang.python Date: Mon, 18 Mar 2013 11:24:52 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=123.192.32.215; posting-account=5JdMBQoAAABHnS4mjpqEzxnmWtgiiVNw References: <5146B848.3040509@pearwood.info> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 123.192.32.215 MIME-Version: 1.0 Subject: Re: [Python-ideas] Message passing syntax for objects From: 88888 Dihedral To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Python List , Python-Ideas 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: , Message-ID: Lines: 98 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363641986 news.xs4all.nl 6935 [2001:888:2000:d::a6]:56030 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41461 zipher=E6=96=BC 2013=E5=B9=B43=E6=9C=8819=E6=97=A5=E6=98=9F=E6=9C=9F=E4=BA= =8CUTC+8=E4=B8=8A=E5=8D=881=E6=99=8204=E5=88=8636=E7=A7=92=E5=AF=AB=E9=81= =93=EF=BC=9A > On Sun, Mar 17, 2013 at 11:46 PM, Steven D'Aprano w= rote: >=20 > > I am very interested in this as a concept, although I must admit I'm no= t >=20 > > entirely sure what you mean by it. I've read your comment on the link a= bove, >=20 > > and subsequent emails in this thread, and I'm afraid I don't understand= what >=20 > > you mean here. I feel you are assuming that your readers are already ex= perts >=20 > > on message-passing languages (Smalltalk?). I know what *I* mean by mess= age >=20 > > passing, but that's not necessarily what you mean by it. >=20 >=20 >=20 > I'm sorry, I haven't been very clear. I'm not even an expert on >=20 > message-passing languages, but I see that it's a profound concept that >=20 > hasn't been adequately integrated into the OOP model. In any case, I >=20 > will try to do better. And I apologize to everyone on the list for >=20 > the prior mail spam. A part of me is a bit giddy with the idea. >=20 >=20 >=20 > By message passing, I mean all the ways we communicate to objects in >=20 > the OOP environment. Usually we "communicate" to them through >=20 > method-invokation. But this is the wrong way, I argue, to look at the >=20 > problem. >=20 >=20 >=20 > With function or method syntax, you're telling the computer to >=20 > "execute something", but that is not the right concepts for OOP. You >=20 > want the objects to interact with each other and in a high-level >=20 > language, the syntax should assist with that. >=20 >=20 >=20 > > By building it into the language, it would *enforce* a modular object >=20 > > style, rather than the current, very specialized and very programmer >=20 > > specific way there is now. In fact, most people never really think in >=20 > > that paradigm, yet if the language supported/proposed such a syntax, >=20 > > programmers would start to re-arrange the whole object hierarchy in a >=20 > > new, more modular and universal way. >=20 > > [end quote] >=20 > > >=20 > > I don't understand this. In what way would message passing enforce a mo= dular >=20 > > object style? In what way does Python not already have a modular object >=20 > > style? >=20 >=20 >=20 > Hopefully my paragraph clarifies that a bit. But the key conceptual >=20 > shift is that by enforcing a syntax that moves away from invoking >=20 > methods and move to message passing between objects, you're >=20 > automatically enforcing a more modular approach. >=20 >=20 >=20 > Mark Please check object pascal and objective c and erlang for=20 the message-action director model of what you want. C is too low level to be suitable for everything.