Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88015 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15654 invoked from network); 2 Sep 2015 21:49:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2015 21:49:24 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.215.47 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.215.47 mail-la0-f47.google.com Received: from [209.85.215.47] ([209.85.215.47:36764] helo=mail-la0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/D0-10015-2EE67E55 for ; Wed, 02 Sep 2015 17:49:23 -0400 Received: by lanb10 with SMTP id b10so16290822lan.3 for ; Wed, 02 Sep 2015 14:49:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Ji45obgA541c0ojGGHP+oLBtlC++SWhyLjXZPsCti3M=; b=UrFOmlt9sOwRRTjl9F9dHyae8Nubz9auXjDoHH5p7krGrXO9yPQYIJbe0FDseNpLAm WlqO1+1uoEg7Ttc+q3ujKjq9srgjTJLqi8h4h0yImg1rFmeU5y+ugFkwb5M7jnLjBZRy 17z4xEQDeBinNWdUd8yJB9JAcXLpSSlYb9pARtGXGGg8G5Wez1wnF56/+oCJCKM2Fnha ILHdmAbuZGiXVwBYKL2xh02y+DxXjy2bGwqOTAdCJSTXJqVzkfQVWkuIpB57TbA+XXhI bijhI2zohGIJIh1Z/VDaw4wp/U70+3mFEZ2y9WSFBiWM+rul376XR/7/Uh2J0wBYzgNf 6vng== X-Gm-Message-State: ALoCoQm0dtkKvqwdKbBEVGaYi0KRJy9xNYFzjyhSN8dXxguDvm8K8fHK3lgUqF/WTLlNNqHjc+Y+ MIME-Version: 1.0 X-Received: by 10.112.234.197 with SMTP id ug5mr17979168lbc.79.1441230560186; Wed, 02 Sep 2015 14:49:20 -0700 (PDT) Sender: php@golemon.com Received: by 10.112.34.102 with HTTP; Wed, 2 Sep 2015 14:49:20 -0700 (PDT) X-Originating-IP: [2620:10d:c090:200::5:15d4] In-Reply-To: References: Date: Wed, 2 Sep 2015 14:49:20 -0700 X-Google-Sender-Auth: gU0ARl3Yxs9BJwsOk7NP7NN3O04 Message-ID: To: Bob Weinand Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] [Discussion] Short Closures From: pollita@php.net (Sara Golemon) On Mon, Aug 31, 2015 at 12:29 PM, Bob Weinand wrote: > The short Closures RFC: > https://wiki.php.net/rfc/short_closures > I just want to toss in my two cents as someone who's been using short closures on a PHPish platform for some time already, because predictions are one thing, experience in another. The first time I saw "==>" I was like "what the eff?", but then you know what I did? I looked up what it did, and I haven't had a problem reading it since. In fact, I have a much easier time reading a short lambda than an over verbose function declaration sitting in the middle of another expression. I don't think PHP needs to adopt every feature that the majority of the most used languages have chosen to implement, but this one should really be a no-brainer, regardless of which token is used. Because code-beauty does matter. Beautiful code is code that is easier to maintain, and code that is easier to maintain is often more secure and reliable. That's all. -Sara