Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50075 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17042 invoked from network); 2 Nov 2010 06:18:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Nov 2010 06:18:12 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:39973] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/70-14738-D1DAFCC4 for ; Tue, 02 Nov 2010 01:18:06 -0500 Received: by yxe1 with SMTP id 1so3626305yxe.29 for ; Mon, 01 Nov 2010 23:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=VLzKGnRbRYK8jxb2Xo3oekqcUa+xHUjWq03zYXxjdZs=; b=KDYwKTcAhur2By51xhZM1KtKVe6DBkaep3Xntytgs2qtnZpX/D2+YsmxKGa0z9aK2j BzDPlqsIEaocgRsr8kPMbHbhJLm9KgIjqo0TwZp0+0hA0Lff2AoqHRc6JTG7o4qCbjb9 0rnWkGdLS21CNLBabaYX7xVSTiBlab0SpwvLU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=uK+i5QucUcPVt8GQLpvFSPmSRzOrNV/mxn8tBSF+oc9E4L2k6YP9kQvUl29K0MZVB3 ocnDP7NrpiOYUZyfcV7s33f4cJ8E8ePQkaknq0GEX64k56ixW2pKb3H6yTnZbEOsDOmY yZExR6d+0tOcmozbQ2f17tiqVUJMHuEUdT2T0= MIME-Version: 1.0 Received: by 10.90.3.31 with SMTP id 31mr923888agc.141.1288678683437; Mon, 01 Nov 2010 23:18:03 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.90.53.4 with HTTP; Mon, 1 Nov 2010 23:18:03 -0700 (PDT) In-Reply-To: <4CCF27FF.1000305@lerdorf.com> References: <4CCB6B21.1070708@codeangel.org> <4CCF27FF.1000305@lerdorf.com> Date: Tue, 2 Nov 2010 07:18:03 +0100 X-Google-Sender-Auth: vhDFi1Ydw_p5g3cvpl67ltBlOZ4 Message-ID: To: Rasmus Lerdorf Cc: Felipe Pena , internals@lists.php.net Content-Type: multipart/alternative; boundary=00163631084327e99f04940be395 Subject: Re: [PHP-DEV] rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON From: info@tyrael.hu (Ferenc Kovacs) --00163631084327e99f04940be395 Content-Type: text/plain; charset=UTF-8 On Mon, Nov 1, 2010 at 9:50 PM, Rasmus Lerdorf wrote: > On 11/1/10 1:47 PM, Felipe Pena wrote: > > 2010/11/1 Richard Lynch > > > >> On Fri, October 29, 2010 7:47 pm, admin wrote: > >>> WTF is T_PAAMAYIM_NEKUDOTAYIM? > >>> > >>> This has to be THE most asked question by new php developers when they > >>> come across it. Can we please change the token name to T_DOUBLE_COLON > >>> so I don't have to hear about it constantly? > >>> > >>> Those that disagree don't do enough PHP support to know how often it > >>> is > >>> asked. it's worth it. > >> > >> -1 > >> > >> > > Instead of renaming the token, I prefer to associate a literal string to > > each token, to have a legible error message, without the T_ being shown. > > > > For example, we could use in the Bison grammar file: > > %token T_PAAMAYIM_NEKUDOTAYIM "::" > > > > So that the error message become: > > > > $ sapi/cli/php -r '::' > > Parse error: syntax error, unexpected :: in Command line code on line 1 > > > > Instead of the known "unexpected T_PAAMAYIM_NEKUDOTAYIM" one. > > Years and years ago that was the intent. I didn't think there was a > clean way to do that in yacc though. > > ... so when will we start replacing the tokens with literals? Tyrael --00163631084327e99f04940be395--