Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77760 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77676 invoked from network); 3 Oct 2014 17:38:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Oct 2014 17:38:23 -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.214.182 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.182 mail-ob0-f182.google.com Received: from [209.85.214.182] ([209.85.214.182:53044] helo=mail-ob0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/0B-10205-E0FDE245 for ; Fri, 03 Oct 2014 13:38:22 -0400 Received: by mail-ob0-f182.google.com with SMTP id uy5so1258881obc.27 for ; Fri, 03 Oct 2014 10:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=BGidTj+wdrZQD6CoFdbJWuBW+BExMnjWpLs95/X1EfE=; b=xTK/8zsJkb8eJDQhP2Xhe7HHmOKXCEg8jW8PWJP/8t0sYoUWehhR3Q8LiJYIWqwU0G vfGoowmgPxIpamYs0WjhIGQ+NpRFWfF1Dhq87+lsfaiQr744woJ1SK0wuxDv0Ur8ia/+ V2MtsKkdKAuVQnM7ug/qWF3exsccMd4SZ5AeXMAfkKMghXVloSA0GXT/pCeehe8jhmh6 4TKgnpN37iO4tVH7R60qntK3Qjnbnt2BC6iY81VGMhtyM/eZkubZMAJruohoKiTxVr3l Iui7nIoyJUWH/FCxgNyN0QAXU6dX8MKmdbnCCmVhjggllSKwLlAm5p0gmWMEW9x1MZV+ QLkg== MIME-Version: 1.0 X-Received: by 10.182.119.230 with SMTP id kx6mr5444607obb.72.1412357893001; Fri, 03 Oct 2014 10:38:13 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.76.106.20 with HTTP; Fri, 3 Oct 2014 10:38:12 -0700 (PDT) In-Reply-To: <42.58.10205.32DCE245@pb1.pair.com> References: <42.58.10205.32DCE245@pb1.pair.com> Date: Fri, 3 Oct 2014 11:38:12 -0600 X-Google-Sender-Auth: sdJG5MQAdgrnDbgbpFwi_8ALeVU Message-ID: To: Thomas Gossmann Cc: internals Content-Type: multipart/alternative; boundary=001a11c30b94825bed050488323a Subject: Re: [PHP-DEV] [PHP7] Remove the function keyword from class methods? From: levim@php.net (Levi Morrison) --001a11c30b94825bed050488323a Content-Type: text/plain; charset=UTF-8 On Fri, Oct 3, 2014 at 10:21 AM, Thomas Gossmann wrote: > Hey there, > > I'm just a php developer, thus not even having a php.net account. > > I was wondering if it is possible to deprecate/remove the function keyword > from class methods in php7 or at least make it optional when one of the > visibility keywords is present? > > I feel like writing a completely unnecessary keyword each time I write a > new method for a class. > > I guess this was a discussion earlier, though I wasn't able to find > anything about it. Would love to hear, what pdt-internals (re-)think about > that topic. > > Thanks, > gossi Removing the function keyword makes it more difficult for people to find method definitions. This has historically been a significant factor in why this hasn't been done. Also, what does this change actually bring to the table? There is no actual benefit to the language or tooling; in fact it probably makes the tooling more difficult. All this means is that the user types the function keyword less and saves a very, very small amount of time. In summary, historically we have felt that the benefits do not outweigh the drawbacks. --001a11c30b94825bed050488323a--