Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66015 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2576 invoked from network); 20 Feb 2013 01:43:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2013 01:43:33 -0000 Authentication-Results: pb1.pair.com header.from=wfitch@meetme.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=wfitch@meetme.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain meetme.com designates 74.125.149.147 as permitted sender) X-PHP-List-Original-Sender: wfitch@meetme.com X-Host-Fingerprint: 74.125.149.147 na3sys009aog122.obsmtp.com Linux 2.5 (sometimes 2.4) (4) Received: from [74.125.149.147] ([74.125.149.147:47651] helo=na3sys009aog122.obsmtp.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/41-29922-34A24215 for ; Tue, 19 Feb 2013 20:43:32 -0500 Received: from mail-vc0-f200.google.com ([209.85.220.200]) (using TLSv1) by na3sys009aob122.postini.com ([74.125.148.12]) with SMTP ID DSNKUSQqQFov+YNnPME0sGpM6XkiE6MBPNyo@postini.com; Tue, 19 Feb 2013 17:43:32 PST Received: by mail-vc0-f200.google.com with SMTP id p1so9688163vcq.3 for ; Tue, 19 Feb 2013 17:43:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-received:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=wnOdCnYNbmhEcDsewTwDc2rxg9Kg942vnH6iMnFduXA=; b=oKgUEt+nBaboprv8yx8LYTKO46lSrDbSp9oAGx0ZQHtNeO9kD0/xYt1pr0Cuhvuybk E6TG+QAjj08E9nd7PhhWtKe+FNufpDLF+X84TwPzU21exjRSyA3ifidP2hD7eG+6GOBC YvHbzq0gaUkG24i5UfPqwyUGBbpjtZJIIBTGvQmquwE+uY7WmEx9GzNsTwKyvLNs82T1 HKXNBi3vqtBqQFrwjBbuoHVBCuWTPayDZWN+aRK2nkxJvDCNqevC+yj1BvALZ4E1ngoS AMBBbg/Lvp+v1Z30GdGXhPOvv7cMN7ZG8j+rJWiux5V+VoGvzmYq2EAtFEkDHpliD1kI sDQQ== X-Received: by 10.52.26.17 with SMTP id h17mr20386799vdg.101.1361324608194; Tue, 19 Feb 2013 17:43:28 -0800 (PST) X-Received: by 10.52.26.17 with SMTP id h17mr20386786vdg.101.1361324607849; Tue, 19 Feb 2013 17:43:27 -0800 (PST) Received: from new-host.home (pool-98-114-220-23.phlapa.fios.verizon.net. [98.114.220.23]) by mx.google.com with ESMTPS id tp10sm19726754vec.1.2013.02.19.17.43.26 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Feb 2013 17:43:27 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) In-Reply-To: <-1452447624906595030@unknownmsgid> Date: Tue, 19 Feb 2013 20:43:25 -0500 Cc: Nikita Nefedov , "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable Message-ID: <63084355-FBB2-4991-87AC-EAE76087D4DF@meetme.com> References: <-1452447624906595030@unknownmsgid> To: Zeev Suraski X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQkroD+RqDcwiAKi0S9r0DT/Hp7XkhuQPlLnBW2crZtTBGUVhg7obhGt6uURx6n89au5rm0+NqOjzzyEtcmKKJ8171mT5T6ANmxspM8tr996VNAdBtzBHf4EJ1A/DGQSTrjlxBvNK1QrZ27PWpIHswfBRm+WdF9nvMFB5WuJrCFa8XcHYZM= Subject: Re: [PHP-DEV] Dropping requirement for `function` keyword for methods in classes/interfaces/etc From: wfitch@meetme.com (Will Fitch) On Feb 19, 2013, at 6:01 PM, Zeev Suraski wrote: > Are we really trying to look under ground now for ways to change the > language syntax? Agree 100%. Not to mention, I plan on eventually convincing enough = people to replace that keyword with a type hint ;) >=20 > Unless there's a strong case to adding/removing/changing syntax, that > goes well beyond 'because we can' or 'it shortens the code' it > shouldn't even be brought up for discussion. >=20 > Zeev >=20 > On 19 =D7=91=D7=A4=D7=91=D7=A8 2013, at 19:44, Nikita Nefedov = wrote: >=20 >> Hi! >>=20 >> As someone mentioned in the thread about short syntax for closures, = we could also drop requirement for `function` keyword when = defining/declaring methods in classes, interfaces or traits. >>=20 >> I have long noticed how redundant it is. The patch is pretty easy as = it was with commas :) >> It is absolutely backwards compatible (you can use `function` or you = can not use it). Here's the patch: = https://gist.github.com/nikita2206/4988075 >>=20 >> If people will welcome this proposal, I would need some karma for = making RFC. >>=20 >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >>=20 >=20 > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20