Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53911 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35087 invoked from network); 12 Jul 2011 08:48:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jul 2011 08:48:24 -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 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:38259] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/82-07173-65A0C1E4 for ; Tue, 12 Jul 2011 04:48:23 -0400 Received: from [192.168.2.230] (ppp-93-104-60-102.dynamic.mnet-online.de [93.104.60.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id D805575439; Tue, 12 Jul 2011 10:48:18 +0200 (CEST) To: Nikita Popov Cc: Patrick ALLAERT , Stas Malyshev , PHP Internals In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 12 Jul 2011 10:48:17 +0200 Message-ID: <1310460497.28120.25.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Make primitive type names reserved words (Was: Re: [PHP-DEV] [RFC] 5.4 features for vote (long)) From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Sun, 2011-07-10 at 19:41 +0200, Nikita Popov wrote: > E.g. Writing > > class Evaluator { > public function eval() { > > } > } > > Does in no way create an ambiguity with the eval language construct PHP > implements. For a method this is correct. But for a normal function this is different: And i consider it "strange" to allow different names for functions and methods. And yes I'm aware that $eval = 'eval'; $eval(); would call the function. I fear consistency issues. johannes