Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62467 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74223 invoked from network); 24 Aug 2012 23:53:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2012 23:53:51 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:49811] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/49-24287-E0418305 for ; Fri, 24 Aug 2012 19:53:51 -0400 Received: by lbbgp3 with SMTP id gp3so1488308lbb.29 for ; Fri, 24 Aug 2012 16:53:48 -0700 (PDT) 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=B6GDVub10/QAZXnxQ54a1BUSCAWYR7TflZMeOk/XV8E=; b=wOuxTe8pJWXbeuiE6dJLXr4fDtM1/si12A1E/PXsCHY+bCY7tcPq8y6u2/+SS9hN+m csVyDrh4al5Lg9Y/5O0LBWUuhBLN/6yNKKObQeRkGGRnkOdyynf9DOH/0ENWy3s+Jry9 /gnBmK6x0MPIwhbpdnC9TnNSB0LMfbhimHBvUok0zQutuxfg2mt+/1wjvGLXBRMg7Itd vNKn93roZjMiyGwsrml62SyI+JbRKGZ9GlM8fv/zA+y3WX9P18z9H1+YYZDDvDiiYyi7 7ScyQyq6tegrgR/E5QlGbyNcaUth+oBemcUHPWflEeo0Keo2pzHew+4+XRs8TarcUi8M SQhQ== MIME-Version: 1.0 Received: by 10.112.25.4 with SMTP id y4mr3427680lbf.61.1345852428141; Fri, 24 Aug 2012 16:53:48 -0700 (PDT) Received: by 10.152.122.51 with HTTP; Fri, 24 Aug 2012 16:53:48 -0700 (PDT) In-Reply-To: <503812F9.6070200@gmail.com> References: <502EBAA4.9090007@gmail.com> <5037EBB6.7040702@gmail.com> <50380790.5040304@sugarcrm.com> <503812F9.6070200@gmail.com> Date: Sat, 25 Aug 2012 01:53:48 +0200 Message-ID: To: Sebastian Krebs Cc: PHP internals list Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: Combined assignment operator for short ternary From: nikita.ppv@gmail.com (Nikita Popov) On Sat, Aug 25, 2012 at 1:49 AM, Sebastian Krebs wrote: > Hi, > > It's like with any other compound operator: A _real_ reason isn't there. But > saying "It's not worth it" is something I can live with (even if I don't > know how much effort it would take ;)). I just asked myself: '?:' is (a kind > of?) binary operator and every other binary operator is available as > compound operator, so why not '?:', so I don't have to repeat the variable? No, every other binary operator is not available. If I interpret this right one could say that all short-circuiting operators are not available. E.g. you also can't write $foo &&= $bar; or $foo ||= $bar. The ?: operator also falls in this category of short-circuiting logical operators.