Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41461

Re: [Python-ideas] Message passing syntax for objects

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 <dihedral88888@googlemail.com>
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 <mailman.3459.1363626278.2939.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=123.192.32.215; posting-account=5JdMBQoAAABHnS4mjpqEzxnmWtgiiVNw
References <CAMjeLr_dBCSL9VGjrW6wJjMDhLWFdxWqGWw+5MXTfo8+x9yfYw@mail.gmail.com> <5146B848.3040509@pearwood.info> <CAMjeLr9bH9nYpEeq8KjzHXmEXpuUgAjvWb3f2e7VR2sno=6Rkw@mail.gmail.com> <mailman.3459.1363626278.2939.python-list@python.org>
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 <dihedral88888@googlemail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc Python List <python-list@python.org>, Python-Ideas <python-ideas@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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.3477.1363641986.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


zipher於 2013年3月19日星期二UTC+8上午1時04分36秒寫道:
> On Sun, Mar 17, 2013 at 11:46 PM, Steven D'Aprano <steve@pearwood.info> wrote:
> 
> > I am very interested in this as a concept, although I must admit I'm not
> 
> > entirely sure what you mean by it. I've read your comment on the link above,
> 
> > and subsequent emails in this thread, and I'm afraid I don't understand what
> 
> > you mean here. I feel you are assuming that your readers are already experts
> 
> > on message-passing languages (Smalltalk?). I know what *I* mean by message
> 
> > passing, but that's not necessarily what you mean by it.
> 
> 
> 
> I'm sorry, I haven't been very clear.  I'm not even an expert on
> 
> message-passing languages, but I see that it's a profound concept that
> 
> hasn't been adequately integrated into the OOP model.  In any case, I
> 
> will try to do better.  And I apologize to everyone on the list for
> 
> the prior mail spam.  A part of me is a bit giddy with the idea.
> 
> 
> 
> By message passing, I mean all the ways we communicate to objects in
> 
> the OOP environment.  Usually we "communicate" to them through
> 
> method-invokation.  But this is the wrong way, I argue, to look at the
> 
> problem.
> 
> 
> 
> With function or method syntax, you're telling the computer to
> 
> "execute something", but that is not the right concepts for OOP.  You
> 
> want the objects to interact with each other and in a high-level
> 
> language, the syntax should assist with that.
> 
> 
> 
> > By building it into the language, it would *enforce* a modular object
> 
> > style, rather than the current, very specialized and very programmer
> 
> > specific way there is now.  In fact, most people never really think in
> 
> > that paradigm, yet if the language supported/proposed such a syntax,
> 
> > programmers would start to re-arrange the whole object hierarchy in a
> 
> > new, more modular and universal way.
> 
> > [end quote]
> 
> >
> 
> > I don't understand this. In what way would message passing enforce a modular
> 
> > object style? In what way does Python not already have a modular object
> 
> > style?
> 
> 
> 
> Hopefully my paragraph clarifies that a bit.  But the key conceptual
> 
> shift is that by enforcing a syntax that moves away from invoking
> 
> methods and move to message passing between objects, you're
> 
> automatically enforcing a more modular approach.
> 
> 
> 
> Mark

Please check object pascal and objective c and erlang for 
the message-action director model of what you want.

C is too low level to be suitable for everything.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [Python-ideas] Message passing syntax for objects Mark Janssen <dreamingforward@gmail.com> - 2013-03-18 10:04 -0700
  Re: [Python-ideas] Message passing syntax for objects 88888 Dihedral <dihedral88888@googlemail.com> - 2013-03-18 11:24 -0700
    Re: [Python-ideas] Message passing syntax for objects Lele Gaifax <lele@metapensiero.it> - 2013-03-18 20:16 +0100
  Re: [Python-ideas] Message passing syntax for objects 88888 Dihedral <dihedral88888@googlemail.com> - 2013-03-18 11:24 -0700

csiph-web