Path: csiph.com!x330-a1.tempe.blueboxinc.net!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!newsfeed5.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'instance,': 0.05; 'forcing': 0.07; 'python': 0.08; 'plus,': 0.09; 'precedence': 0.09; 'syntax': 0.11; 'am,': 0.13; 'binary': 0.13; 'wrote:': 0.15; 'assigns': 0.16; 'declaring': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'messy': 0.16; 'rantingrick': 0.16; 'mon,': 0.16; 'suggest': 0.17; 'received:209.85.210.174': 0.19; 'received:mail-iy0-f174.google.com': 0.19; 'solution.': 0.19; 'variable': 0.21; 'header:In-Reply-To:1': 0.22; 'away.': 0.23; 'calls.': 0.23; 'keyword': 0.25; 'statement': 0.25; 'function': 0.26; 'message-id:@mail.gmail.com': 0.28; 'rid': 0.29; 'to:addr:python-list': 0.34; 'integer': 0.35; "isn't": 0.35; 'functions.': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'subject:!': 0.67; '11,': 0.68; 'subject:are': 0.70; 'become': 0.72; 'adopt': 0.84; 'ambiguous.': 0.84; 'dilemma': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=3lpKPJ9lW384y6OkKQp9Gz5ozweGklnvl7ugYHZMjmY=; b=uklelGF9thPawCqCEqNBBnlq2zbnkiyLaQwRugFUCMc9tDUF2xCX3Qieh5ncsomZ/C F0r9hadgpgJNu+0/sUbS18rWHwrZEhT8lZHIHfvRwFKs5q4XJfH2f14uaGZ/BJMc7akL t935QrkpBu1Wmn4HdiHf1yVYFNdHWjrgdyt18= MIME-Version: 1.0 In-Reply-To: References: <97dcpqFdndU1@mid.individual.net> Date: Mon, 11 Jul 2011 03:30:12 +1000 Subject: Re: Virtual functions are virtually invisible! From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310319015 news.xs4all.nl 21845 [2001:888:2000:d::a6]:43465 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9171 On Mon, Jul 11, 2011 at 3:15 AM, rantingrick wrote: > =A0I suggest we solve this dilemma by forcing a syntax "tag" when > declaring clobbering virtual functions. Python has other dilemmas, too. I suggest we adopt the same solution. For instance, every statement should begin with a marker, so that we know it isn't a comment; every variable name should be adorned, so that we know it's not a keyword like 'if'; and every decimal integer should begin with "0d" so that we know it isn't hex. Plus, we should get rid of binary operators with their messy precedence tables; everything should become function calls. $assign($x,$add(0d5,0d7)) # assigns 12 (decimal) to x This would make Python far less ambiguous. We should proceed with this right away. ChrisA