Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70368 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91423 invoked from network); 25 Nov 2013 01:38:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2013 01:38:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.52 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 74.125.82.52 mail-wg0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:42231] helo=mail-wg0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 99/00-25540-D2AA2925 for ; Sun, 24 Nov 2013 20:38:53 -0500 Received: by mail-wg0-f52.google.com with SMTP id x13so3218992wgg.31 for ; Sun, 24 Nov 2013 17:38:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xO8KVwbwhs+vfHIWcUL28lsobWMM8QZfb9axe559ic0=; b=bkqU7VQe+pvu5LjJT4WMPRnNSJCpxbvsOkCj93QdnmFaHkphL8JCp7O0bTh70HmUlV jI7r0Ik6ULn0WaMflX5xMxcTp7ySNiZc80Z/KdLF+dYAtP21ZqG45GCeZcJKLmhhWqE/ U23PUgVeaYw/h9sZaXuQI5qtjToSYdBRqWDtadnmqpudcd9MiDl4lAxf18ZEaA8AqUJu 9OyQTHv8XFebL4r0SOSyYTlh52x7uUQHyxLhzEtHlyNam+X6ejqI7/N4w9FOMBpx5II7 ofIAgOzqZtYAddVyLQnbgoch1RUkXoLc0BFD9K38cyznMZ7AHeL4tBQrMk+Yz0NKg9HF RQLw== MIME-Version: 1.0 X-Received: by 10.194.170.133 with SMTP id am5mr3081348wjc.42.1385343530322; Sun, 24 Nov 2013 17:38:50 -0800 (PST) Received: by 10.227.198.130 with HTTP; Sun, 24 Nov 2013 17:38:50 -0800 (PST) In-Reply-To: References: Date: Sun, 24 Nov 2013 20:38:50 -0500 Message-ID: To: Tjerk Meesters Cc: PHP Internals Content-Type: multipart/alternative; boundary=089e0122e92e04519c04ebf66dcb Subject: Re: [PHP-DEV] Re: rfc: pow-operator From: theanomaly.is@gmail.com (Sherif Ramadan) --089e0122e92e04519c04ebf66dcb Content-Type: text/plain; charset=ISO-8859-1 On Sun, Nov 24, 2013 at 9:15 AM, Tjerk Meesters wrote: > > > 2. The available votes for the associativity is reduced to either right or > non associative; I'd rather see it done right (pun intended) or done in a > way whereby the developer must put parentheses to disambiguate. > > Here's why I strongly oppose the non-associative option: - No other language that I know of currently takes this approach with the exponent operator - PHP already has a bad wrap for making awkward language decisions that only end up confusing or hurting the user in the long run -- and unnecessarily so (see ternary for example -- we're the only language that made that bad choice with respect to ternary's associativity and it's a shameful mess) - We have plenty of reason to follow suit with other languages (clearly the majority of them found it more useful to have a right-associative exponent operator) - Note that some of these languages actually ended up changing their exponent operator from left-associative to right-associative at one point (Tlc for example) I propose the vote only be for a right-associative exponent operator to either be included or not included in the language. That is the only sensible thing to vote on considering all the facts. - Regards Sherif -- The guy that just wants to get things done --089e0122e92e04519c04ebf66dcb--