Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28303 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98453 invoked by uid 1010); 8 Mar 2007 21:19:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 98438 invoked from network); 8 Mar 2007 21:19:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2007 21:19:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:24017] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/01-64913-AED70F54 for ; Thu, 08 Mar 2007 16:19:40 -0500 Received: from [127.0.0.1] ([192.168.16.109]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 8 Mar 2007 13:19:36 -0800 Message-ID: <45F07DE6.6070401@zend.com> Date: Thu, 08 Mar 2007 13:19:34 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0b2 (Windows/20070116) MIME-Version: 1.0 To: Ralph Schindler CC: internals References: <45F076AE.8010001@smashlabs.com> <45F07834.1020801@zend.com> <45F07AA2.9060007@smashlabs.com> In-Reply-To: <45F07AA2.9060007@smashlabs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Mar 2007 21:19:36.0433 (UTC) FILETIME=[79457610:01C761C7] Subject: Re: [PHP-DEV] Class name clashing From: stas@zend.com (Stanislav Malyshev) > I guess so that we can have a language that will be able to model real > world problems... instead of the real world changing the name of the > problem to fit the language. Language has its rules. Keywords are one of the rules. I, for example, am annoyed that in English you have to put this silly "a" and "the" everywhere, while so many real languages live perfectly well without it. If you want to argue how English is unfit to represent real world problems, reread "Who's on first base" sketch :) PHP has similar problems - some real world cases would have to add one or two letters so that it won't be confusing to the parser. Terrible, I agree, but that's what we have. > Or, how about creating a language thats always striving to be better.. Name one language that strives to be worse. Your better is apparently different from other's better and also from what's possible and feasible to do. > With the adoption of PHP5 also comes the increased adoption of OOP.. and > this issue is a speed bump. No it isn't. I can see no single serious reason why the class must be named Case or you have to move to Smalltalk or give up OOP altogether. It's a minuscule annoyance at best. > Anyway, I write so that perhaps, maybe, just maybe, someone might want > to see whats involved instead of simply writing off this request.... What's involved is probably changing language parser, not sure even current flex/yacc combo can do it. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/