Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88028 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90954 invoked from network); 3 Sep 2015 09:57:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2015 09:57:24 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.179 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:36185] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/86-53181-28918E55 for ; Thu, 03 Sep 2015 05:57:24 -0400 Received: by wibz8 with SMTP id z8so92858334wib.1 for ; Thu, 03 Sep 2015 02:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=0CrtQbuy1bgGhJg+a++BEVpeG2+XbPcYvKa5xSAhFxs=; b=KhKzjueLGYv/CQX8jf4jTAnm+zhA88Wd+7q9gwzkfNhQUgjPcNDULyOOiLqUod06vd EOXWvR0Qm2e7LEEAfhWegL7nATHeAZq86p/w/N28QXoqavS8yPMotxY2ExOz+OqatR6x yRwZmgpq2d20gthE1kmw7HO6aFFPrCdZj0PE5UgKjnyRLm+LafNY94IX+/ZDdFKQ727v MMPsbOj7G3heFwMqq1o1xyZcRGZvwErKlXE/LhRiNIgzSruVwGZA7j2QZI+/eKQh+Y7I fjePAgAgtmMAJnGVrIC30dbRyMGqEq6ILqeiTtY0k93eBON/YbvKYsYqf8RaqIYVwxIN 49IA== X-Received: by 10.180.103.35 with SMTP id ft3mr13129066wib.46.1441274239784; Thu, 03 Sep 2015 02:57:19 -0700 (PDT) Received: from [192.168.0.152] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id d7sm8093241wiz.22.2015.09.03.02.57.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2015 02:57:19 -0700 (PDT) References: <55E77CA9.7050609@gmail.com> To: PHP Internals Message-ID: <55E81959.6040305@gmail.com> Date: Thu, 3 Sep 2015 10:56:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] [Discussion] Short Closures From: rowan.collins@gmail.com (Rowan Collins) Pavel KouĊ™il wrote on 03/09/2015 07:32: > Amendment 2. Make the ~> operator non-associative > Why? Once you read documentation about how the operator works and what > it does, you will know it and writing the extra brackets seems > superfluos. And woudn't this complicate the parser even more? Also, if > you have no idea about functional programming whatsoever, this will be > hard to grasp in any syntax form, but the syntax isn't the problem in > that case (as I already said in previous email). Yeah, maybe this one is just me - I just find right-associativity really hard to read, whatever it's purpose. Maybe it's because I've only ever read left-to-right languages. As mentioned in a previous e-mail, when I look at "$a ~> $b ~> $c" it makes me think of a single chain where all the terms are somehow related, like "$a = $b = $c", rather than any kind of nesting. Maybe I'd get used to it, maybe it would be rare enough that I'd never need to. > So you are taking a syntax that's supposed to be short and "clean" and > making it more complex by the amedments 3 and 4? No, I'm trying to think of compromises which address constructive criticisms people have made of the current proposal, such as the variety of syntax forms, and the implicit scoping of variables. To be clear, these are not demands or anything like that, just suggestions of how to move the discussion beyond "here's the proposal, take it or leave it". > Btw. about your previous email and this syntax ending your career - > why would it? That wasn't my e-mail, it was one I replied to. I'm not against this proposal, I'm genuinely trying to find ways forward with it. Regards, -- Rowan Collins [IMSoP]