Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65975 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6502 invoked from network); 19 Feb 2013 17:44:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 17:44:10 -0000 Authentication-Results: pb1.pair.com header.from=inefedor@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=inefedor@gmail.com; spf=pass; 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:34194] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/11-17768-8E9B3215 for ; Tue, 19 Feb 2013 12:44:09 -0500 Received: by mail-la0-f42.google.com with SMTP id fe20so6865565lab.1 for ; Tue, 19 Feb 2013 09:44:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:date:to:subject:mime-version :content-transfer-encoding:from:message-id:user-agent; bh=7XRVRf2maygWVsqBmef40OgSwzsPZi9HS2JaxzX1eko=; b=MnNCxdoMYvth/LN4prSfh0uD+i1hRtz5J7bnStfnA73fxKIVkZroeHcfi9X9tjr76P ap1/LN2WulyvAHLR2jImZwnX1m+PN2MFAYTPnZkKT6PinKDt44EbF1kbIajyIOVVVvMF eTRPagdXIubb7Mcty47OTCnptLoBbPOy2Ak/6w57bIBsNgW8m4YhedTodz8M0o+TPF+V 5NewrxAH0vHFU0GVONNCLsTf6bViNf/Jvmztyjc98m1dEMWxwLEfkMllA/lNka++t3QZ EDrJDWX0UsGSpcad5X0+B0xlpERR6rmDxLAf+rVVWsDVkcJZuvnQoNQShJZAI2CDWxz9 OHLA== X-Received: by 10.112.37.194 with SMTP id a2mr7584724lbk.40.1361295845477; Tue, 19 Feb 2013 09:44:05 -0800 (PST) Received: from nikita2206-debian (37-144-174-250.broadband.corbina.ru. [37.144.174.250]) by mx.google.com with ESMTPS id t17sm17242216lam.9.2013.02.19.09.44.04 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 19 Feb 2013 09:44:04 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Date: Tue, 19 Feb 2013 21:44:03 -0000 To: "internals@lists.php.net" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/12.14 (Linux) Subject: Dropping requirement for `function` keyword for methods in classes/interfaces/etc From: inefedor@gmail.com ("Nikita Nefedov") Hi! 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. 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 If people will welcome this proposal, I would need some karma for making RFC.