Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65971 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 299 invoked from network); 19 Feb 2013 17:19:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 17:19:18 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.51 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.51 mail-oa0-f51.google.com Received: from [209.85.219.51] ([209.85.219.51:38739] helo=mail-oa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/DF-17768-614B3215 for ; Tue, 19 Feb 2013 12:19:18 -0500 Received: by mail-oa0-f51.google.com with SMTP id h2so7152842oag.38 for ; Tue, 19 Feb 2013 09:19:16 -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=ef44jdGnurju2+CW2e947eIcB49JNBMYZNdW/IZiQ1A=; b=tqhFzgU9kZnUXObvmyO4mXIOE/nr1PWbCu3vZhJAzQYhDkfVxjN67i3h+ZWw+0FSeU G3F8H6SiRkKJXofrSAQwRBmzykfbhVZT+KG7xqF7Oaatzwz+RInW+2cg8vJMPxI9wFKu oIaznuoNqOsfMtB++PPYPI05JlaL1tTWPgDVj01ZCsTMG+0aui5dBr5NHpZSESvklAk+ rB7ryXPLM2yLO2ftv+boxYr9gJxsZiDFumTk9c1qOj+oQVb2G9J8npYatZjrcw39t8dd up2hNaDk0c2jp/otkpHy2ltUaFPbCOdeKTc4dy7o6FzbuJKe2FsjV6iAnel+NtB6BEpW bexA== MIME-Version: 1.0 X-Received: by 10.182.118.42 with SMTP id kj10mr7810529obb.99.1361294355849; Tue, 19 Feb 2013 09:19:15 -0800 (PST) Received: by 10.76.24.234 with HTTP; Tue, 19 Feb 2013 09:19:15 -0800 (PST) In-Reply-To: References: <8490FC41-2696-4948-83A1-3931674183B0@gmail.com> Date: Tue, 19 Feb 2013 10:19:15 -0700 Message-ID: To: Sean Coates Cc: Florin Razvan Patan , Marcello Duarte , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Short syntax for anonymous functions From: morrison.levi@gmail.com (Levi Morrison) > Have you considered how this will work/look in an array? > > $a = [$b => ($n) $m => $m * $n]; // wat. First off, it should be: $a = [$b => ($n) |$m| => $m * $n]; The || make a big difference in this situation. Secondly, if you hit a situation where the syntax is confusing, use a less confusing syntax if possible. This goes for any type of syntactic confusion, not just short-array syntax.