Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48150 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93878 invoked from network); 29 Apr 2010 11:13:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2010 11:13:06 -0000 Authentication-Results: pb1.pair.com header.from=mathieu.suen@easyflirt.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mathieu.suen@easyflirt.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain easyflirt.com designates 91.199.255.56 as permitted sender) X-PHP-List-Original-Sender: mathieu.suen@easyflirt.com X-Host-Fingerprint: 91.199.255.56 python-06.easyrencontre.com Linux 2.6 Received: from [91.199.255.56] ([91.199.255.56:34263] helo=mail.easyflirt.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/4E-05666-0C969DB4 for ; Thu, 29 Apr 2010 07:13:05 -0400 Received: from [192.168.0.51] (office.easyrencontre.com [78.155.152.6]) by mail.easyflirt.com (Postfix) with ESMTPSA id 2D09B6374DD; Thu, 29 Apr 2010 13:13:01 +0200 (CEST) Message-ID: <4BD969BC.9030702@easyflirt.com> Date: Thu, 29 Apr 2010 13:13:00 +0200 User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: =?UTF-8?B?Sm9oYW5uZXMgU2NobMO8dGVy?= CC: PHP internals References: <4BD5A3EB.8090403@easyflirt.com> <1272464861.870.55.camel@guybrush> In-Reply-To: <1272464861.870.55.camel@guybrush> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Obscure token name From: mathieu.suen@easyflirt.com ("mathieu.suen") Johannes Schlüter wrote: > On Mon, 2010-04-26 at 16:32 +0200, mathieu.suen wrote: > >> I am wondering why is the token name so incomprehensible ? >> Like T_PAAMAYIM_NEKUDOTAYIM... >> > > I don't mind if we change the name in the error message. Seems to be an > issue for some ... but I think you have to look it (quickly) up the > first time you stumble over it and then remember it so it shouldn't be a > tooo big issue. > If you fear typing it: The tokenizer extension already provides > T_DOUBLE_COLON as synonym :-) > > php> $t=token_get_all(" php> var_dump($t[1][0] == T_DOUBLE_COLON && $t[1][0] == T_PAAMAYIM_NEKUDOTAYIM); > bool(true) > > johannes > > > The question is that I want to understand error messages. I can google it but that is not a good way of doing things. Stefan got the right answer: "Better parser errors" --Mathieu Suen