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


Groups > comp.lang.python > #9171

Re: Virtual functions are virtually invisible!

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 <rosuav@gmail.com>
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 <d13c09ce-f44b-4cbe-bdd2-c997675e57da@t5g2000yqj.googlegroups.com>
References <a26063b5-7f2a-4452-898a-6fbcbaa3ed9a@j23g2000yqc.googlegroups.com> <97dcpqFdndU1@mid.individual.net> <d13c09ce-f44b-4cbe-bdd2-c997675e57da@t5g2000yqj.googlegroups.com>
Date Mon, 11 Jul 2011 03:30:12 +1000
Subject Re: Virtual functions are virtually invisible!
From Chris Angelico <rosuav@gmail.com>
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 <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.841.1310319015.1164.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Mon, Jul 11, 2011 at 3:15 AM, rantingrick <rantingrick@gmail.com> wrote:
>  I 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.

<STMT> $assign($x,$add(0d5,0d7)) </STMT> # assigns 12 (decimal) to x

This would make Python far less ambiguous. We should proceed with this
right away.

ChrisA

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


Thread

Virtual functions are virtually invisible! rantingrick <rantingrick@gmail.com> - 2011-07-03 15:55 -0700
  Re: Virtual functions are virtually invisible! Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-07-04 20:43 +1200
    Re: Virtual functions are virtually invisible! rantingrick <rantingrick@gmail.com> - 2011-07-10 10:15 -0700
      Re: Virtual functions are virtually invisible! Chris Angelico <rosuav@gmail.com> - 2011-07-11 03:30 +1000
      Re: Virtual functions are virtually invisible! Michael Hrivnak <mhrivnak@hrivnak.org> - 2011-07-10 20:31 -0400
        Re: Virtual functions are virtually invisible! rantingrick <rantingrick@gmail.com> - 2011-07-10 19:35 -0700
          Re: Virtual functions are virtually invisible! Michael Hrivnak <mhrivnak@hrivnak.org> - 2011-07-11 00:45 -0400
            Re: Virtual functions are virtually invisible! rantingrick <rantingrick@gmail.com> - 2011-07-11 06:42 -0700
              Re: Virtual functions are virtually invisible! Chris Angelico <rosuav@gmail.com> - 2011-07-12 00:41 +1000
                Re: Virtual functions are virtually invisible! rantingrick <rantingrick@gmail.com> - 2011-07-11 14:46 -0700
                Re: Virtual functions are virtually invisible! Chris Angelico <rosuav@gmail.com> - 2011-07-12 18:40 +1000
              Re: Virtual functions are virtually invisible! alex23 <wuwei23@gmail.com> - 2011-07-12 22:48 -0700
      Re: Virtual functions are virtually invisible! Fabio Zadrozny <fabiofz@gmail.com> - 2011-07-16 19:34 -0300
        Re: Virtual functions are virtually invisible! rantingrick <rantingrick@gmail.com> - 2011-07-16 15:58 -0700
          Re: Re: Virtual functions are virtually invisible! Dave Angel <d@davea.name> - 2011-07-16 21:45 -0400

csiph-web