Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66049 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83672 invoked from network); 20 Feb 2013 10:42:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2013 10:42:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=swhitemanlistens-software@cypressintegrated.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=swhitemanlistens-software@cypressintegrated.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain cypressintegrated.com designates 173.1.104.101 as permitted sender) X-PHP-List-Original-Sender: swhitemanlistens-software@cypressintegrated.com X-Host-Fingerprint: 173.1.104.101 rproxy2-b-iv.figureone.com Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222) Received: from [173.1.104.101] ([173.1.104.101:62892] helo=rproxy2-b-iv.figureone.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/6C-19387-4A8A4215 for ; Wed, 20 Feb 2013 05:42:45 -0500 Received: from localhost ([216.220.114.66]) by rproxy2-b-iv.figureone.com (Brand New Heavy v1.0) with ASMTP id FMK57341 for ; Wed, 20 Feb 2013 02:42:41 -0800 Date: Wed, 20 Feb 2013 05:42:31 -0500 Reply-To: Sanford Whiteman X-Priority: 3 (Normal) Message-ID: <1159358398.20130220054231@cypressintegrated.com> To: "Nikita Nefedov" In-Reply-To: References: <-1452447624906595030@unknownmsgid> <51240F9D.8020409@lerdorf.com> <591203797.20130219192444@cypressintegrated.com> <4995898.20130220030236@cypressintegrated.com> <146974008.20130220045951@cypressintegrated.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Dropping requirement for `function` keyword for methods in classes/interfaces/etc From: swhitemanlistens-software@cypressintegrated.com (Sanford Whiteman) > So no you are not saying "PHP is not Java or C#". I don't want to touch > any religious views but it's really funny to read :) Not sure I get your remark... of those languages, I've said, in essence [1] "Don't *force* PHP to look less like Java, ECMAScript, C#, or C++ without a good reason and a new feature" and [2] "Don't preclude other languages' advanced features from being added to PHP later -- even much later -- with their most obvious syntax by clipping syntax in PHP.now so that later additions are more difficult." And PHP is looking more like ES in some ways (array literals). I like that. I don't insist on it, but it's a leg up. CF did that too a while back, and that brought me back to it for a project. As I said, if inner classes are ever added to PHP, it stands to reason they would follow the syntax of other C-style languages. And you might then apply your (I believe flawed) argument that "any token that could be considered superfluous in a given parser context *and* PHP version should become optional" with the default meaning being permanently fixed as of that PHP version. It doesn't stand up to scrutiny because you just end up with more magic to remember and no real advantages, especially over time. But really, really truly, I am not going to comment again on this thread but just wish you luck in swaying the people that count! Cheers, -- S.