Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48122 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6071 invoked from network); 28 Apr 2010 14:27:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Apr 2010 14:27:57 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 unknown Solaris 10 (beta) Received: from [217.114.211.66] ([217.114.211.66:56716] helo=schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/65-02305-2E548DB4 for ; Wed, 28 Apr 2010 10:27:47 -0400 Received: from localhost (ka.local [127.0.0.1]) by schlueters.de (Postfix) with SMTP id 926882435A for ; Wed, 28 Apr 2010 16:27:43 +0200 (CEST) Received: from [192.168.1.31] (ppp-93-104-35-239.dynamic.mnet-online.de [93.104.35.239]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by schlueters.de (Postfix) with ESMTPSA id 2828324358; Wed, 28 Apr 2010 16:27:43 +0200 (CEST) To: "mathieu.suen" Cc: PHP internals In-Reply-To: <4BD5A3EB.8090403@easyflirt.com> References: <4BD5A3EB.8090403@easyflirt.com> Content-Type: text/plain; charset="UTF-8" Date: Wed, 28 Apr 2010 16:27:41 +0200 Message-ID: <1272464861.870.55.camel@guybrush> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Obscure token name From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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(" var_dump($t[1][0] == T_DOUBLE_COLON && $t[1][0] == T_PAAMAYIM_NEKUDOTAYIM); bool(true) johannes