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


Groups > comp.lang.python > #43915

Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages

Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.020
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'subject:: [': 0.04; 'default.': 0.09; 'default;': 0.09; 'mind,': 0.09; 'expert,': 0.16; 'roy': 0.16; 'subject: \n ': 0.16; 'subject:OOP': 0.16; 'subject:object': 0.16; 'subject:possible': 0.16; 'subject:programming': 0.16; 'subject:type': 0.16; 'wrote:': 0.18; 'subject:] ': 0.20; 'question': 0.24; 'subject:/': 0.26; 'header :In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; "d'aprano": 0.31; 'steven': 0.31; 'struct': 0.31; 'class': 0.32; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'c++': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'experts': 0.60; 'interview': 0.61; 'subject:The': 0.64; 'great': 0.65; 'between': 0.67; 'smith': 0.68; 'inquiring': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=5mnW0EQDsp7/0JePwWXBntBRXjTuFm17eVF1J8xHhKQ=; b=fvzPx2Zg1Z/8JkvFiahovEvUOBBMyD7jlkhyg8n9GnDE7OILesP9aHjEtQVAJ+bNYg xYXzaXIqTVA0bRvEQVcOeYR01g2+vT/DwioNBAO0uRoUJ0ag8nj+dE8rPDhO3YEvvJ+8 bfilljTDg5G2bHEp+v32s2HVh14vndU2gYsDHy7qcryWO/CbbGILj1WI7XolIK9pDnB2 oXFbwQnD/zC8ZpMiHeItJY7FtqHBNIJcj8fGCHE/84/mv5KlGXGYx1hQfLlsQXt12GGT v1Czg+h2DOTAMWUh5a+TLSn3PUNdCoVzJHVHg8qHoj67KvRZONYZhKNosF+sJGJxa0G1 oZwQ==
X-Received by 10.52.228.71 with SMTP id sg7mr10026294vdc.51.1366389553042; Fri, 19 Apr 2013 09:39:13 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <51716dd1$0$29977$c3e8da3$5496439d@news.astraweb.com>
References <CAMjeLr_7A-NRtec=K_ZsjXA_oJHnD6+vpttz4Ma0vtDRbb+o2w@mail.gmail.com> <CAOvMSvXy=iJhUtMfncv-RE3HQw+7DJO-M1-TaeAFFhnDe9mpUA@mail.gmail.com> <CAMjeLr9WQz3KdXGYZUPumHj5MdBH29tYY0fdV49FNnDycDNWkQ@mail.gmail.com> <20846.27580.375000.899631@gargle.gargle.HOWL> <516EB4D1.1020103@ifi.lmu.de> <CAEG9JZADz3qsfkP70+dT_Gzw2cytGO1xagrNS0MVqTT8pfmxZw@mail.gmail.com> <mailman.798.1366320771.3114.python-list@python.org> <517131cd$0$29977$c3e8da3$5496439d@news.astraweb.com> <roy-D59E40.09071519042013@news.panix.com> <mailman.821.1366378384.3114.python-list@python.org> <roy-C0B59C.11314819042013@news.panix.com> <mailman.824.1366386029.3114.python-list@python.org> <roy-CBFB64.12020019042013@news.panix.com> <51716dd1$0$29977$c3e8da3$5496439d@news.astraweb.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Fri, 19 Apr 2013 16:38:31 +0000
Subject Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages
To Python <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 <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>
Newsgroups comp.lang.python
Message-ID <mailman.830.1366389947.3114.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1366389948 news.xs4all.nl 2303 [2001:888:2000:d::a6]:44963
X-Complaints-To abuse@xs4all.nl
Path csiph.com!usenet.pasdenom.info!gegeweb.org!feed.ac-versailles.fr!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Xref csiph.com comp.lang.python:43915

Show key headers only | View raw


On Fri, Apr 19, 2013 at 4:16 PM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> On Fri, 19 Apr 2013 12:02:00 -0400, Roy Smith wrote:
>
>> PS: a great C++ interview question is, "What's the difference between a
>> class and a struct?"  Amazing how few self-professed C++ experts have no
>> clue.
>
> I'm not a C++ expert, but I am an inquiring mind, and I want to know the
> answer!

C++ class members are private by default; struct members are public by
default.  That's the only difference as I recall.

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


Thread

Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Robert Harper <rwh@cs.cmu.edu> - 2013-04-18 17:14 -0400
  Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-19 12:00 +0000
    Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Roy Smith <roy@panix.com> - 2013-04-19 09:07 -0400
      Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Chris Angelico <rosuav@gmail.com> - 2013-04-19 23:33 +1000
        Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Roy Smith <roy@panix.com> - 2013-04-19 11:31 -0400
          Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Chris Angelico <rosuav@gmail.com> - 2013-04-20 01:40 +1000
            Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Roy Smith <roy@panix.com> - 2013-04-19 12:02 -0400
              Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-19 16:16 +0000
                Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Ned Batchelder <ned@nedbatchelder.com> - 2013-04-19 12:41 -0400
                Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages 88888 Dihedral <dihedral88888@googlemail.com> - 2013-04-20 00:50 -0700
                Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Ian Kelly <ian.g.kelly@gmail.com> - 2013-04-19 16:38 +0000
              Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-04-19 19:03 -0400
                Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Roy Smith <roy@panix.com> - 2013-04-19 19:40 -0400
      Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-19 16:37 +0000
        Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Roy Smith <roy@panix.com> - 2013-04-19 19:37 -0400
          Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-04-19 23:47 +0000

csiph-web