Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed4a.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; 'defaults': 0.07; 'rewrite': 0.09; 'separating': 0.09; 'cc:addr :python-list': 0.11; 'discuss.': 0.16; 'dislike': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'include.': 0.16; 'say.': 0.16; 'stuff,': 0.16; 'ui,': 0.16; 'unexpectedly': 0.16; 'wrote:': 0.18; 'passing': 0.19; 'thu,': 0.19; 'code,': 0.22; 'example': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; "aren't": 0.24; 'comparing': 0.24; 'earlier': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'nearly': 0.26; 'posts': 0.26; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'easier': 0.31; 'about.': 0.31; 'comparison': 0.31; 'controlled': 0.31; 'sep': 0.31; "can't": 0.35; 'tool': 0.35; 'something': 0.35; 'point.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'returning': 0.36; 'pm,': 0.38; 'anything': 0.39; 'how': 0.40; 'read': 0.60; 'show': 0.63; 'real': 0.63; 'our': 0.64; 'different': 0.65; 'believe': 0.68; 'real-world': 0.68; 'balanced': 0.84; 'guts': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=xN8o3t0W+aPfQBKqIGJAn0+YC824ames6nx8IFOTBA4=; b=iJEEWLnL/sBVMRIuTam74NzmgzJBuoB6jJwaqscoNTNexAAb9jGLSdnQ/gWadXI0Pq 2jPVg2j/D0X3jx8xLK7v8fUCtj0V/AxDdN91DxDk0MalUKiDQd4JedFaFuA1nDcOLK01 2kNJ/kzjzIMzzPJk6CZqim5R6s57z7dXpxQdmJwzCWLkFjEah1xnGbYHuU0TZyT3iyPn P2GiAy9HvpB6N/9/qPsgh6CSr1KKDnBwEUhRThTNQonx/jujBtnELuMYi6w01e7ZlGX5 X8Dh5fSEv9AdqCA9VWrqJBWMDnhoilZBkIdyxgcJNoujwk3KidcjY6X6n/l8FWOPnjdu D3zA== MIME-Version: 1.0 X-Received: by 10.50.30.72 with SMTP id q8mr7160348igh.14.1409837410831; Thu, 04 Sep 2014 06:30:10 -0700 (PDT) In-Reply-To: References: <51acfec6-6b7b-4773-8d70-0360381bbed1@googlegroups.com> <4c873e02-93b1-4ad3-bc91-566a72b8e729@googlegroups.com> <99df9997-474e-4190-8179-6c1442b622a2@googlegroups.com> Date: Thu, 4 Sep 2014 23:30:10 +1000 Subject: Re: Python is going to be hard From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1409837419 news.xs4all.nl 2845 [2001:888:2000:d::a6]:54303 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77547 On Thu, Sep 4, 2014 at 11:15 PM, Rustom Mody wrote: > How do each of these apply when comparing > a. A program that defaults to passing and returning data structures and > uses print in a very controlled way > > b. A program that randomly mixes call/return with input/print Considering that I've never seen anything that *randomly* mixes them, I can't really say. But you clearly don't dislike print nearly as much as your earlier posts imply, because it can be used in a "controlled way" as your potent comparison point. So how about you show me some real example code, something real-world that you hate, and show me how you'd rewrite it to not use print() calls "randomly mixed" with other stuff, and then we can discuss. I think we'll find that our views aren't as much different as it would seem; both of us believe in separating guts from UI, both of us believe that side-effect-free functions are easier to comprehend than those that unexpectedly change state, and both of us want to make programs that can be read and reasoned about. The only difference is that I see print as an important tool as part of a balanced meal, and you see it as something distasteful that you regrettably have to include. But we both use it. ChrisA