Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.059 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.01; 'syntax': 0.04; 'received:134': 0.05; 'assignment': 0.07; 'bugs.': 0.16; 'denotes': 0.16; 'letting': 0.16; 'subject:Java': 0.16; 'prevent': 0.16; 'implementing': 0.19; 'header:User-Agent:1': 0.23; 'second': 0.26; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'bigger': 0.30; 'especially': 0.30; "i'm": 0.30; 'bugs': 0.33; 'something': 0.35; 'useful': 0.36; 'possible': 0.36; 'behind': 0.37; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'first': 0.61; 'happen': 0.63; 'useful.': 0.68; 'discover': 0.82; 'alone.': 0.84; 'pardon': 0.84; 'subject:experience': 0.84; 'mistake': 0.91 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAEYKSlWGuA9G/2dsb2JhbABch1jKKAKBcQEBAQEBAYUsAQEDASNVBgsLGgIFFgsCAgkDAgECAUUTCAKIIAiwfI8xhFUBAQgCIIEhihiFDBaCUoFFAQScfYdCjnYjgWWCEoMyAQEB Date: Wed, 06 May 2015 14:38:45 +0200 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.5.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Bitten by my C/Java experience References: <87r3qwid3u.fsf@Equus.decebal.nl> <55487d30$0$2917$c3e8da3$76491128@news.astraweb.com> <1a74804c-958f-44ad-a354-e6ac1510a8b6@googlegroups.com> In-Reply-To: <1a74804c-958f-44ad-a354-e6ac1510a8b6@googlegroups.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430915935 news.xs4all.nl 2967 [2001:888:2000:d::a6]:55695 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90049 Op 05-05-15 om 18:24 schreef Rustom Mody: > Yeah I happen to me in that minuscule minority that regards '= denotes > assignment' a bigger mistake than ++ Nice to know I'm not alone. I Especially think it is a mistake, because it is then used as a reason for not allowing something like if a = b - 1: arguing it would lead to some difficult bugs. Which in my mind is arguing backwards. Either you think an assigment in a condition is useful or harmful. In the first case you then look for an assignment token or assignment syntax that is not that likely to lead to difficult to discover bugs instead of letting a possible misleading token or syntax prevent you from implementing something useful. In the second case you just state why you think an assignment in a condition is harmful. No need to hide behind awkward syntax. -- Antoon Pardon