Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32523 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23581 invoked by uid 1010); 1 Oct 2007 19:44:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23566 invoked from network); 1 Oct 2007 19:44:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Oct 2007 19:44:38 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:56421] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/80-20520-52E41074 for ; Mon, 01 Oct 2007 15:44:38 -0400 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id A4C64C0D607; Mon, 1 Oct 2007 12:44:34 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-5-144.neb.res.rr.com [76.84.5.144]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 76EB8C0D5E6; Mon, 1 Oct 2007 12:44:33 -0700 (MST) Message-ID: <47014EE9.9000806@chiaraquartet.net> Date: Mon, 01 Oct 2007 14:47:53 -0500 User-Agent: Thunderbird 1.5.0.13 (X11/20070824) MIME-Version: 1.0 To: Andi Gutmans CC: =?ISO-8859-1?Q?Johannes_Schl=FCter?= , Sebastian Bergmann , internals@lists.php.net References: <1191237850.2903.19.camel@johannes.nop> <698DE66518E7CA45812BD18E807866CEB9528E@us-ex1.zend.net> In-Reply-To: <698DE66518E7CA45812BD18E807866CEB9528E@us-ex1.zend.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] T_IMPORT vs. T_USE From: greg@chiaraquartet.net (Gregory Beaver) Andi Gutmans wrote: > Hi Johannes, Our preference would be to stick to "import" because I > think the perception many will have of "use" is that it also includes > files (just based on some other languages). That said I agree that > compatibility would be an issue here. In fact it's even somewhat of > an issue with "namespace" which is probably also used quite a bit > esp. in relation to XML. > > What I'd like to do is see if it's feasible to support reserved words > as identifiers. It should be possible but we need to see if it makes > sense, how it affects consistency, and if we do it what identifiers > we'd do it for (or all?). This would be pretty easy, in a hackish way, by adding a whole bunch of duplicate rules T_FUNCTION T_STRING, T_FUNCTION T_IMPORT, T_FUNCTION T_NAMESPACE and so on. A more robust way would be to move to lemon/re2c but I'm not volunteering to do this (yet?) :) Greg