Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114644 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9941 invoked from network); 27 May 2021 14:38:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 May 2021 14:38:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F2E451804C9 for ; Thu, 27 May 2021 07:50:45 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 27 May 2021 07:50:45 -0700 (PDT) Received: by mail-oo1-f43.google.com with SMTP id r1-20020a4aa2c10000b029023e8c840a7fso162292ool.12 for ; Thu, 27 May 2021 07:50:45 -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=pKg9Us2fkcg/h3IXosGm4MX5VtQLSx/JGBgtno8MISQ=; b=Xd09iLsltaRR/ILzYAEj/p92HOWYPLJGa5OvLbp6XXxf0LxdtP9Y5KBPiQyRzYascb 196+ZLRUD2z9Ql5DnHfHf78X22zxA4LWDrUlhEYttfz4R4Sgac+g9s2GBQVv9z/qEmxW 9gxKhpqr0LWCnQtu3zWZjHV6RzNr9chIsoSr5+Cmm2zb9vEIvYA0DclZZP71rXwF68mL bXX+NfKqCo4xGFa2lYSK3qtn4Sf1Wpynen6YO7DRSi4BnlkAkoLpiipBivlxxGlHfpqr r0WK78d7Zzm7Ve8gw/MemqcWN+P14d15iwq8tU2PXn1dSqdb6zs7axyc/j0J00/CmfGF yOXA== 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=pKg9Us2fkcg/h3IXosGm4MX5VtQLSx/JGBgtno8MISQ=; b=jwpuRg66h9qpHwP3pdBi+M/wPdrrFlMtfpmmfR9DOkVhQ7K681yB2adVo/LzQMsIwd WuUjbb5Sutdbk7SPSBJac4vB8JLdm6peo2v1yK/9TtL0duWX9bqpI/7ogHH/Ao4wXM1P 4IEbHzfR+Ba4SSwtuHcAYC1LgI819pH2P7M2IIPIwF19Sl36VTM3iEvS2DIzYH8rnJx+ zU3KU4F1rnnbbuofrernxPDiVgePRdEZqPuLeHmvAcAyJAKzxSOyAa7qgvxMKXH6qA+4 GYb+p6rGo/fDtzK4YpJZ9fxrkETlRhDFeICsYt7EmlJEzv7QzVKaz094vX5wSXMy3tQF c3tQ== X-Gm-Message-State: AOAM533nVATtqIWWVwE/eRJow184Psw3ekoR0LUKB91RDZnn4JWfGE6K RZpKJmoNK/QQaygrZty5mXAuP+6443CYYf/ZEEc= X-Google-Smtp-Source: ABdhPJxc+Dx1NT6MUS8R7vnTjTNWYDPgSQDI72B3JDOPkvG8GkTcgperS9Gdi2JHJ8Y0fIGxW/oSaA2wOR/tzWdZTb8= X-Received: by 2002:a4a:d052:: with SMTP id x18mr3069487oor.21.1622127044904; Thu, 27 May 2021 07:50:44 -0700 (PDT) MIME-Version: 1.0 References: <319c4288-5934-b218-d6eb-0b787a2cdef1@gmx.net> In-Reply-To: Date: Thu, 27 May 2021 16:50:34 +0200 Message-ID: To: Rowan Tommins Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000004acb1905c350e271" Subject: Re: [PHP-DEV] Consensus Gathering: is_initialized From: krakjoe@gmail.com (Joe Watkins) --0000000000004acb1905c350e271 Content-Type: text/plain; charset="UTF-8" Thanks for all the input everyone, very successful consensus gathering exercise. Since the response was pretty overwhelmingly negative, I think we can just stop here. I've closed the PR and wrapped up the FR. Anyone is of course free to pursue the RFC that would be required, however ill advised. Forget I said anything, and carry on with your lives. Cheers Joe On Thu, 27 May 2021 at 16:44, Rowan Tommins wrote: > On 27/05/2021 14:55, Andreas Leathley wrote: > > > > When using isset on a non-nullable property a > > static analyzer would rightfully complain that the property is not > > nullable > > > Precisely, so don't mark a property as non-nullable and then leave it > unset. > > > > isset in this case is abused to check for uninitialized, hiding the > > actual intent > > > On the contrary, the uninitialized state is what is being abused. If you > want to make the intent clear, use a clear flag of "needs lazy-loading", > or whatever you're actually using this magic "not null but not really > anything else either" state for. > > > Regards, > > -- > Rowan Tommins > [IMSoP] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --0000000000004acb1905c350e271--