Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54008 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69067 invoked from network); 18 Jul 2011 00:22:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2011 00:22:29 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.170 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 74.125.83.170 mail-pv0-f170.google.com Received: from [74.125.83.170] ([74.125.83.170:59473] helo=mail-pv0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/F4-23384-3CC732E4 for ; Sun, 17 Jul 2011 20:22:28 -0400 Received: by pvh10 with SMTP id 10so2602820pvh.29 for ; Sun, 17 Jul 2011 17:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=McFnSyTtcNQP0PygspMxcKgTLpBSGcZwYLSPF87U+MQ=; b=bya/Vbmk8kLoRauIu5qgLIXWnU1U7hM45xp3blmybe6nbwh26fSEey9nMPcVhulUcF IzzwehOnfGRhX/lIpzvm5+sUx+gsXPmVMykgq8uKD2EJli7I63ToBicga2eEyvWebPfG XawY6T3d9rI39QMm6tMqb5Om0AuT/5bd+N81w= MIME-Version: 1.0 Received: by 10.68.40.131 with SMTP id x3mr5692813pbk.128.1310948544515; Sun, 17 Jul 2011 17:22:24 -0700 (PDT) Received: by 10.68.62.2 with HTTP; Sun, 17 Jul 2011 17:22:24 -0700 (PDT) In-Reply-To: <4E2377B7.3070703@lerdorf.com> References: <4E2377B7.3070703@lerdorf.com> Date: Sun, 17 Jul 2011 20:22:24 -0400 Message-ID: To: Rasmus Lerdorf Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: Add Logical Shifts for bitwise string operations From: ircmaxell@gmail.com (Anthony Ferrara) That's a very good point. However it would be discernible by the context. If there's a literal or a variable to the left of the operator, it'd be the shift operator (since any literal or variable the left of the heredoc would result in a syntax error). But it should likely be more concrete. Perhaps b<< or something else. I'll update the RFC to leave the selection of an operator pair up for discussion. Thanks, Anthony On Sun, Jul 17, 2011 at 8:00 PM, Rasmus Lerdorf wrote: > On 07/17/2011 04:47 PM, Anthony Ferrara wrote: >> Hello all, >> >> I have added an RFC for the addition of logical bitwise shift >> operators. =A0(>>> and <<< proposed). >> >> https://wiki.php.net/rfc/logicalshiftoperator >> >> Feedback welcome, > > Your RFC should probably address the issue that we already have a <<< > operator. See http://php.net/heredoc > > -Rasmus >