Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107675 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 10769 invoked from network); 25 Oct 2019 00:09:14 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 25 Oct 2019 00:09:14 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 64CBC2D1FE2 for ; Thu, 24 Oct 2019 14:55:44 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: No Received: from mail-vs1-xe2d.google.com (mail-vs1-xe2d.google.com [IPv6:2607:f8b0:4864:20::e2d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Thu, 24 Oct 2019 14:55:43 -0700 (PDT) Received: by mail-vs1-xe2d.google.com with SMTP id k15so110813vsp.2 for ; Thu, 24 Oct 2019 14:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IVaEzXz0kl5ms/UV5Qx8b30cccTyOeVzg76J5L/N21U=; b=ZZu5VnY7wmgD022xmWYkbHwdGMugLwI42FZLh38RnWQOnEP4RkFVXRCdW6pdtWKT5l 2byKzmRy5P0calXp3dmILo4U1Us6nsEiT9oThYPlJAGLPKwvAUNa+LxWr7mEv2tRuPoY UITD/PyU115y2NYXPv83SXGCo9fOwuhtyV9zZs1QlUpJR0JicZ6WVKWgksssLk/38muF LpMLtS2aKfP9Uh8ulCpOcb87YuePlq6OvfgscOROFbefAJVBBVu0v70lmlU86EXsuzGZ AvbdPoauZuWPRL4k0sm1GFqZMVeDKrVC0JO7XOejA/xeRT6bRiP2xJqQAhtyyzc6XEwU n+rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IVaEzXz0kl5ms/UV5Qx8b30cccTyOeVzg76J5L/N21U=; b=aKeha6n2Abu5dI7U1XgGOZWlJKuByDJ1KKoVYDujIcLL5NPxQNObZXYANEseXKbXNB cboVkGS+S4wuTkzvienzjRhlQjRlN7m2Sh3HQh3Ddwh52XudMfcF2sp4lyHDz01HDP0D WUq57KWFV6BY8ugkd8rKyQ+Dt/BVA/RKH/kHesw+J8qOloWLGzcd2yqcivgb7OBVmNNt k5Q0cpggzSm5cEIyTGJ/H04pM8gKM0oD2jRRa+sD0KbEjmOektemAtTU0oMZH32aYc4C 9K0GLs6prxgrdkngh00ECecHtip5+ICrkhzVmfKfOX/nGarXFSgaRxGR0Xyzz9afoU16 ZnUg== X-Gm-Message-State: APjAAAUKdVmBHv3tsB7W5JBCqtSj4rx5jIpOzXIoCQzlKvIF1nGeiThx uVM8XLpilM2dxxzOhAp0+U6ZS23o7cBnYIP5h2c= X-Google-Smtp-Source: APXvYqwip2TD3yBfHCeKNpVGHetbZ8neFigGZoDdJdyOnuEz+ISxgn2NdrYb/ed6Ofu1PHPjsNB8yhaUpc3DTbMK+9Y= X-Received: by 2002:a67:1285:: with SMTP id 127mr77242vss.187.1571954143626; Thu, 24 Oct 2019 14:55:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 24 Oct 2019 17:55:31 -0400 Message-ID: To: Kosit Supanyo Cc: Bruce Weirdan , PHP internals Content-Type: multipart/alternative; boundary="000000000000558ace0595af186b" X-Envelope-From: Subject: Re: [PHP-DEV] [RFC] anti-coalescing-operator From: dohpaz@gmail.com (Ken Stanley) --000000000000558ace0595af186b Content-Type: text/plain; charset="UTF-8" On Thu, Oct 24, 2019 at 5:31 PM Kosit Supanyo wrote: > Hi Bruce > > If I understand correctly. > > $_SERVER['fname'] !?? $user->setName($_SERVER['fname']); > > > Will return the result of $user->setName($_SERVER['fname']) if > $_SERVER['fname'] is set or null if not set. While: > > isset($_SERVER['fname']) && $user->setName($_SERVER['fname']); > > > Will return boolean. > Yes. Semantically the same, but one is terse and the other is explicit. > > Cheers > > --000000000000558ace0595af186b--