Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66043 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73667 invoked from network); 20 Feb 2013 10:05:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2013 10:05:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=inefedor@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=inefedor@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: inefedor@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:45030] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/5A-19387-9EF94215 for ; Wed, 20 Feb 2013 05:05:30 -0500 Received: by mail-la0-f42.google.com with SMTP id fe20so7550525lab.1 for ; Wed, 20 Feb 2013 02:05:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=vUFUpuyW+pXUabp0aphlTjHFo4RbSQT/P2We9NGe41Q=; b=oI1WvfCG2FO4mQ/VDuQCeoEKF0zTMAq9vlyQZZK7h7sGDZLn7M+LsiM3sFw7bi8Eij WQM4ypL/H4/PrTucdWoHfa3HTwbrhxfAgIK2arB0H+JVO8RSXGHueQ3eNG/8scGG9BMR sKyJjIviApd7txTT1u8O/KvMmFNQsbvd9ivX+kYu/SbtHBGHJukg2TiJkt9PjdyGFvc3 VcVPqKZpDz9cmdQ0X3N4/KsMlcKLFQDfsPLYRRBQ/xIE9HN9mTePcAUrrSGoPdtIIm4m ChWNx9yl+LgsQZtuYQWz8p4JmgrJBujpx+iJWzYbDEwO+RraOv8y4Zm11EYGWO4zi7ev ZfKw== X-Received: by 10.112.9.231 with SMTP id d7mr2316665lbb.8.1361354726198; Wed, 20 Feb 2013 02:05:26 -0800 (PST) Received: from nikita2206-debian (37-144-174-250.broadband.corbina.ru. [37.144.174.250]) by mx.google.com with ESMTPS id mq7sm21153614lab.1.2013.02.20.02.05.25 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 20 Feb 2013 02:05:25 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Nikita Nefedov" , "Sanford Whiteman" References: <-1452447624906595030@unknownmsgid> <51240F9D.8020409@lerdorf.com> <591203797.20130219192444@cypressintegrated.com> <4995898.20130220030236@cypressintegrated.com> <146974008.20130220045951@cypressintegrated.com> Date: Wed, 20 Feb 2013 14:05:23 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <146974008.20130220045951@cypressintegrated.com> User-Agent: Opera Mail/12.14 (Linux) Subject: Re: [PHP-DEV] Dropping requirement for `function` keyword for methods in classes/interfaces/etc From: inefedor@gmail.com ("Nikita Nefedov") On Wed, 20 Feb 2013 09:59:51 -0000, Sanford Whiteman wrote: >> Classes always should be declared with class keyword, because there >> could >> be ambiguity whether it's class, interface or trait. > > If only inner classes are allowed in a given PHP version, there's no > ambiguity about whether "something{}" just inside a a class is an > inner class. > > That's the justification for removing "function" just inside classes, > isn't it? That it's not ambiguous because the only thing as of PHP.now > that can take the form "sometype somevisibility something(){}" is a > function? > > Well, if in PHP.later, the only thing that takes the form "sometype > something{}" is an inner class, then leaving off the "sometype" there > is also unambiguous (but also similarly gratuitous). > > And if in PHP.later.still you have inner interfaces, then the > unmodified one still defaults to inner class and only a literal > "interface something{}" is an inner intf. > > (I'm attempting a RAA argument but maybe failing....) > > -- Sandy | FigureOne Support Team > > 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 :)