Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80878 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25158 invoked from network); 20 Jan 2015 14:28:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2015 14:28:26 -0000 Authentication-Results: pb1.pair.com header.from=marcio.web2@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=marcio.web2@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.176 as permitted sender) X-PHP-List-Original-Sender: marcio.web2@gmail.com X-Host-Fingerprint: 209.85.217.176 mail-lb0-f176.google.com Received: from [209.85.217.176] ([209.85.217.176:49724] helo=mail-lb0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/03-07480-6066EB45 for ; Tue, 20 Jan 2015 09:28:25 -0500 Received: by mail-lb0-f176.google.com with SMTP id z12so13117292lbi.7 for ; Tue, 20 Jan 2015 06:28:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=FRXoGhbiLY7CXBj8Mr1qpHgyNdDmz+8i4Kee2FEgWRY=; b=MWAwtoK0Uku+om7We2Gl5QbdcVngQQgBk9DYV0QEZN8tGJCNAbYxjz+5FdwCEKQSX3 rLXw2L/ik2F2oyJE/N9JYKpSdMS0UptCBVLLmrV9m5XMj4OEPG5USM1pxscUaUtliKEv zXuXLP5wTAfxluPJGwGamyjMJm+cD5QsniqBt34iBPR562MfI49/U0wdfxga3xjwLRvo BtpH7p038cxDGfsY/BAeOxN0MgS4xHRy7bEo/27r0EJuxQlcMSGuodibwadCalZZv+VG vz/vV6vKQq1HgebAPtLB2ewh7tleYdhZFimZDY0u+yN9JTH6UamsQLIjIlqVOgnuSPeo Jk4g== X-Received: by 10.112.8.41 with SMTP id o9mr38093180lba.40.1421764099897; Tue, 20 Jan 2015 06:28:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.21.101 with HTTP; Tue, 20 Jan 2015 06:27:59 -0800 (PST) Reply-To: marcio3w@gmail.com In-Reply-To: References: Date: Tue, 20 Jan 2015 11:27:59 -0300 Message-ID: To: Mike Willbanks Cc: Pierre Joye , Andrea Faulds , Niklas Keller , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] in Operator From: marcio.web2@gmail.com (Marcio Almada) Mike, Back to the subject,: > It is indeed different but ever so slightly, a for loop in this case cannot handle a single argument of true and would cause a parse error. > Therefore for ("PHP" in ["PHP, "C", "Java"]) could be handled differently. Again, my main point is that due to other languages the in > operator itself also correlates to for ($var in $container), I understand having an additional RFC but this is indeed the place for > discussion of such things. Agree, but maybe a RFC for "in" operator and a follow up RFC to allow "in" on "for" context could be a win/win here as long as one feature doesn't block each other? 2015-01-20 11:10 GMT-03:00 Marcio Almada : > Mike, > >> Also FYI - in the future please try not to top post and instead post under where you are commenting as it makes it more difficult for >> people coming later to the thread to see the scope of the conversation. > > Thanks for the tip! I read to "do not top post" on the guidelines but > had no clue what it meant until now xD