Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:: [': 0.04; '#define': 0.09; '#include': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 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; 'wished': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'subject:] ': 0.20; 'coding': 0.22; "i've": 0.25; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'public.': 0.31; 'struct': 0.31; 'class': 0.32; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'behind': 0.37; 'changing': 0.37; 'to:addr:python-list': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'subject:The': 0.64; 'telling': 0.64; 'direct': 0.67; '20,': 0.68; 'smith': 0.68; 'flexibility,': 0.84; '2013': 0.98 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=iQvMWcQcOCT11ka2Dbj+45FdLVuWXEkXtF/EmvAinqg=; b=BUfwahfHIQ8IrGgXRkvamuI89X8rHhX0Q84a0eGA6Bb0wWO9x8+Z81cSLSDGMRTcmv OOiRUws1DI7uAjnupeYcB/7yNJ+xF/4+39/N3lnm8pPXUJsf9A4DdcVqbkhW/hMWUHp1 +RaYmDgchFzIMO+SWUles6egzsrpprP8527m0RaZ7qw6fDlzvfQ7ESgC0EJrLAK3VB+O O/CIj7ULcz7CMhKK3Qu0aDVawyHNYjgf48XiicY7dw6WtQ4VOE7KU+sm7lAZg517WTNc yhQyOJdN2ztFix7+hN/nbIhk4uzfnzFZ7kuoYvtILNwehnijlQtr77hc6pI22P+623+q wtSA== MIME-Version: 1.0 X-Received: by 10.220.109.145 with SMTP id j17mr11874742vcp.34.1366386027041; Fri, 19 Apr 2013 08:40:27 -0700 (PDT) In-Reply-To: References: <20846.27580.375000.899631@gargle.gargle.HOWL> <516EB4D1.1020103@ifi.lmu.de> <517131cd$0$29977$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 20 Apr 2013 01:40:26 +1000 Subject: Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1366386029 news.xs4all.nl 2215 [2001:888:2000:d::a6]:55610 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43906 On Sat, Apr 20, 2013 at 1:31 AM, Roy Smith wrote: > #define private public > #define protected public > #include And: #define class struct But what I mean is that, _in my design_, I make everything public. No getters/setters, just direct member access. The theory behind getters and setters is that you can change the implementation without changing the interface... but I cannot remember a *single time* when I have made use of that flexibility. Not one. Nor a time when I've wished for that flexibility, after coding without it. No no, not one! ChrisA (He's telling the truth, he is not Mabel.)