Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107733 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84420 invoked from network); 30 Oct 2019 16:02:55 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 30 Oct 2019 16:02:55 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 36FB92C306F for ; Wed, 30 Oct 2019 06:50:50 -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,URIBL_BLOCKED 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-xe42.google.com (mail-vs1-xe42.google.com [IPv6:2607:f8b0:4864:20::e42]) (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 ; Wed, 30 Oct 2019 06:50:49 -0700 (PDT) Received: by mail-vs1-xe42.google.com with SMTP id v10so1669793vsc.7 for ; Wed, 30 Oct 2019 06:50:49 -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=QoOdEqb2qwRuoid6d0nGn0pYkJmoK4XLnAbgAsB53xk=; b=fbhbCITg4r08k/252pTz0d8p1iZJtICDncHBmnd3NOc/3sgyyGHUmotp0zO6vq4c4m tgPoW/PKWvc6g5xN56Kwm7TqCPj9rFOViUKo/vxQdUQpkH27EyvC2rrZz+JyS3oeaDwn Ev/n4QlzFiSyhMPMFSbuDPZUTRt80/YBm8XK8VYu58FnnI8QoEp4jcsfhRRtf90ksMfE 3rjqWJonSh1obJXPTYDLIhnspXetwNXHxTSXPnka2qY/i25seAfPoLPH9vSqmn4g/VUI 0jcogG02kJMqYcsqF7JuJ1gC/qV232SGBHmUUnwHHwZMqRWqL3LBOjpwJ5RXTGsseCAH 0zJQ== 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=QoOdEqb2qwRuoid6d0nGn0pYkJmoK4XLnAbgAsB53xk=; b=iWZA4FeWhtKq6ZCHiWC7DIjATtTihNv9LyxSxtFQTS749SCW/mstIeE84dVJaXxQ43 WUl8oIS7iUZv4iswU5LcQ8JpRPBPRxnz4YNXDNziDdsfncu0T3zpn8Z9lVd7RVK78yBf jtNkfEqpB3V6NN4gQbcxs4qGnfm9gQ3Niz45Q4VU8FCyBxnC3GnV6PyckU+inOI6+aI+ hU33HZhoTFTF/Af7XORWfUjliD8I2YMo3bjhO1AbIj4Ywc9FWikpi0wv5AC/D1SPkt5B iZrK3fR6OeFfZbyxemOCzp8hq1DU8Mv5rBq4zd6k4nP5VEy8AW7t1WOM0y3meHnmsnKN SDlw== X-Gm-Message-State: APjAAAWiXpJmob1qbP5ZGn+jBcnIL05wD25t8l+VzrDmyXzy6bseMEX6 EQazt+3fPVhUHZSrpgZ0toa5RSWenHZpzA7kbkQ= X-Google-Smtp-Source: APXvYqx87b0aoXu7r7RBhVc4st4EkgAdkCPlxS6ztLX0xL+krewu7gKz++5/5O1p3KT6Wl7DpAoyTTFr5cBGlnJCeIo= X-Received: by 2002:a67:f744:: with SMTP id w4mr5108194vso.13.1572443449093; Wed, 30 Oct 2019 06:50:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 30 Oct 2019 09:50:37 -0400 Message-ID: To: Peter Bowyer Cc: Sara Golemon , Stephen Reay , Dan Ackroyd , PHP internals Content-Type: multipart/alternative; boundary="0000000000003674c60596210550" X-Envelope-From: Subject: Re: [PHP-DEV] [RFC] anti-coalescing-operator From: dohpaz@gmail.com (Ken Stanley) --0000000000003674c60596210550 Content-Type: text/plain; charset="UTF-8" On Wed, Oct 30, 2019 at 7:35 AM Peter Bowyer wrote: > On Fri, 25 Oct 2019 at 00:28, Sara Golemon wrote: > >> At the risk of hijacking, @matthewrask asked me about ?-> a couple weeks >> ago (Javascript is making this one popular), and I threw together a rough >> PoC at >> https://github.com/php/php-src/compare/master...sgolemon:null-coalesce >> which >> I suspect he intends to RFC properly soon. As long as the topic is at >> hand, what's the general appetite for it? Should I bother polishing the >> turd? >> > > It would be the best Christmas present ever. > > Well. Almost. > > Peter > Folks, I haven't forgotten about this; in fact, I've been thinking about it all weekend, and I cannot come up with a good use-case that hasn't already been shown to have either a viable current work-around, or an RFC (with code already written) that would give me what I was looking to do with my !?? operator syntax. So, with that said, I see no reason to further the discussion on a not-null coalescing operator. I do want to thank everybody for their kind and thoughtful feedback. You really made me think about this, and I enjoyed it. I will continue to look for something I can cut my teeth on as a first-time contribution to php core. - Ken Stanley --0000000000003674c60596210550--