Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50806 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3417 invoked from network); 2 Dec 2010 10:03:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2010 10:03:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=dukeofgaming@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dukeofgaming@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dukeofgaming@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:60441] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F2/24-15182-6FE67FC4 for ; Thu, 02 Dec 2010 05:03:35 -0500 Received: by wwb31 with SMTP id 31so6895432wwb.11 for ; Thu, 02 Dec 2010 02:03:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=vx20ax+9l4P+YRKaGHBMFVBOtryj5gCbLQR8+h0mq5M=; b=rzdDsnVrdriBtgPba7YopLL82VjmAkVn2x1XbS29znWMMaLrSim8HvruopcuQuEpCH J0CUU4s6CA0rGtRPy6VC6y54YrHzzUs1KyGXQ75iinzhtKC+qJ65F/7B9W4PPRotO4d8 t8klanrxaOCla1Qzv2s2iKfOifBEJ5IzM9y1k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=Zq9YDuFZJn/FpqAeJNqnBpFIutoeoumkqXrMxeXH8jnYMRujV/mzt09+4Zyy/OtW3h PwbLSlCUSQ0hGEaAaTd1iEJebjNFqj7kcMfCzHtgbO6ssUV8FKPJLX8fEPlUEDNRC9+p /A4skNA+uRy+ZjfedkYhpniCEbd1KDi2gfI+k= Received: by 10.216.166.68 with SMTP id f46mr3226217wel.26.1291284211772; Thu, 02 Dec 2010 02:03:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.238.134 with HTTP; Thu, 2 Dec 2010 02:03:11 -0800 (PST) In-Reply-To: References: <1290879624.7033.826.camel@guybrush> Date: Thu, 2 Dec 2010 04:03:11 -0600 Message-ID: To: =?ISO-8859-1?B?QW5kcukgUvhtY2tl?= Cc: Patrick ALLAERT , Kalle Sommer Nielsen , =?ISO-8859-1?Q?Johannes_Schl=FCter?= , PHP internals list Content-Type: multipart/alternative; boundary=001485f9481ebf2cfd04966a8803 Subject: Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations From: dukeofgaming@gmail.com (dukeofgaming) --001485f9481ebf2cfd04966a8803 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable How about deprecation then? On Thu, Dec 2, 2010 at 3:58 AM, Andr=E9 R=F8mcke wrote: > On Thu, Dec 2, 2010 at 10:34 AM, Patrick ALLAERT >wrote: > > > 2010/11/30 Kalle Sommer Nielsen : > > > Hi > > > > > > 2010/11/30 Patrick ALLAERT : > > >> With this patch, something looks inconsistent to me: > > >> Both properties and methods have a visibility > > >> (public|protected|private) and a keyword: "var" (T_VAR) and "functio= n" > > >> (T_FUNCTION) respectively. > > >> However "private var $foo;" generates a fatal error but "private > > >> function foo(){}" not? > > > > > > The "var" keyword is an alias of the "public" keyword for BC with > > > PHP4. So it would be illogically to declare a property both private > > > and public at the same time ;-) > > > > Shouldn't we get rid of that kind of pre-PHP5 stuff _before_ > > introducing the possible omission of T_FUNCTION? > > > Why? > > This will break lots of code, does it improve anything while at it? Is > 'var' > hindering anything? Is it taking up a lot of code? > If it is removed then that should be in trunk aka "6.0" the 2nd , and not > in > 5.x. > --001485f9481ebf2cfd04966a8803--