Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66006 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84045 invoked from network); 19 Feb 2013 23:46:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 23:46:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.50 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.50 mail-oa0-f50.google.com Received: from [209.85.219.50] ([209.85.219.50:55163] helo=mail-oa0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/94-61103-8BE04215 for ; Tue, 19 Feb 2013 18:46:01 -0500 Received: by mail-oa0-f50.google.com with SMTP id l20so7585980oag.9 for ; Tue, 19 Feb 2013 15:45:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=WiDMFaWTQMy0fTFGYtFSo9aluQA5v8PVHG6TcCAcyKo=; b=kjhEyMr3xEJLtPvk8opMsLcT3FCLhyMeE8uzg2kjMYKSMVYcNMyByR6fWeK+TNqNMI XVOIYPmBCeEB/zf8DXTU3LNUCCY3KA8n4b1YLtKClou9btPpqcnm58oPKYqBQ+uq61sm PZgyuAJo1UezOijfMgyEjCfdututO/S/tLu4ch8LPeAoB0LZ218ZolxafVSG96Xe7rY2 qBpvfcs8Vsw9FCRrE5WUieC0NBJbMLL/zenn/2qCQIUgw+q4sGlVc2b/Rrl1eXFHI1Fv ecZpsfU5Z/InvtaJnQNby/KH1FMNSmr0/7SxiT0GZlWinILgXIU8Os7p1mS2Hq639XEA KYkg== MIME-Version: 1.0 X-Received: by 10.60.31.42 with SMTP id x10mr4666730oeh.18.1361317557956; Tue, 19 Feb 2013 15:45:57 -0800 (PST) Received: by 10.76.24.234 with HTTP; Tue, 19 Feb 2013 15:45:57 -0800 (PST) In-Reply-To: <-1452447624906595030@unknownmsgid> References: <-1452447624906595030@unknownmsgid> Date: Tue, 19 Feb 2013 16:45:57 -0700 Message-ID: To: Zeev Suraski Cc: Nikita Nefedov , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Dropping requirement for `function` keyword for methods in classes/interfaces/etc From: morrison.levi@gmail.com (Levi Morrison) On Tue, Feb 19, 2013 at 4:01 PM, Zeev Suraski wrote: > Are we really trying to look under ground now for ways to change the > language syntax? > > 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. I am something of a language guru and to me syntax is *extremely* important. Am I of the opinion that removing the function keyword from the class definition will help? Yes, I am. Do I think it's some incredible advancement? No, I don't. The key question for me is: does removing it hurt PHP in any way? And for me, the answer is a clear and resounding no. I do not grep code for method definitions: I know exactly where they are and so will my IDE if I happen to not be using vim. And for those who like to grep for method definitions they can keep the keyword present.