Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112185 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 71248 invoked from network); 4 Nov 2020 20:57:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Nov 2020 20:57:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 65DE218050A for ; Wed, 4 Nov 2020 12:18:27 -0800 (PST) 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,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 purple.birch.relay.mailchannels.net (purple.birch.relay.mailchannels.net [23.83.209.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 4 Nov 2020 12:18:26 -0800 (PST) X-Sender-Id: dreamhost|x-authsender|josh@joshbruce.dev Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5BA1B340FBA; Wed, 4 Nov 2020 20:18:25 +0000 (UTC) Received: from pdx1-sub0-mail-a47.g.dreamhost.com (100-96-9-93.trex.outbound.svc.cluster.local [100.96.9.93]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id B39B1340A1E; Wed, 4 Nov 2020 20:18:24 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|josh@joshbruce.dev Received: from pdx1-sub0-mail-a47.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.10); Wed, 04 Nov 2020 20:18:25 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|josh@joshbruce.dev X-MailChannels-Auth-Id: dreamhost X-Coil-Harbor: 5c670d67346bf80e_1604521105000_3116940185 X-MC-Loop-Signature: 1604521105000:4228557283 X-MC-Ingress-Time: 1604521104999 Received: from pdx1-sub0-mail-a47.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a47.g.dreamhost.com (Postfix) with ESMTP id 748737E5F4; Wed, 4 Nov 2020 12:18:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=joshbruce.dev; h=from :message-id:content-type:mime-version:subject:date:in-reply-to :cc:to:references; s=joshbruce.dev; bh=5Utawd88Few4Lx2rLswPsQYCF Y0=; b=iGrNoMubDb+351wlQEOoX8/iUlEkEw3k0WxRBYOAwSMvHzxbuZJljuOMV aN6Iwcnx57flA9OgT+WTDtj4Jm7uBLkdRt2WO7b4rHODXNfPuSpNubiOejx4Ikxu 9Ax3vNalB6XMRnwnwh8bUZab5amrHj2w+IzW7RoLi5gnm7iXPE= Received: from joshs-mbp.lan (21.140.29.136.in-addr.arpa [136.29.140.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: josh@joshbruce.dev) by pdx1-sub0-mail-a47.g.dreamhost.com (Postfix) with ESMTPSA id 2BA137E08B; Wed, 4 Nov 2020 12:18:13 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a47 Message-ID: <090C299B-9E5A-4135-A5A5-D835F73FE0B7@joshbruce.dev> Content-Type: multipart/alternative; boundary="Apple-Mail=_A25B567E-1432-4B56-9A14-D2E3F292902F" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Date: Wed, 4 Nov 2020 14:18:11 -0600 In-Reply-To: Cc: Christian Schneider , PHP Internals List To: Eugene Sidelnyk References: <3BFB4833-2419-420B-9A34-F2DB36BF6FD3@cschneid.com> X-Mailer: Apple Mail (2.3608.120.23.2.4) Subject: Re: [PHP-DEV] Nullsafe From: josh@joshbruce.dev (Josh Bruce) --Apple-Mail=_A25B567E-1432-4B56-9A14-D2E3F292902F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Nov 4, 2020, at 1:38 PM, Eugene Sidelnyk = wrote: >=20 > Yeah... Creating null was a huge mistake. > Now it is probably too late to fix that (maybe some new language can > introduce that). >=20 > But what do you think about introducing special class `NullObject`? I would rather let an instance be =E2=80=9Cempty=E2=80=9D than to have a = unique, separate thing that always represents nothing. To be fair, I = don=E2=80=99t know the specific NullObject implementation here - based = on presumption - I would intentionally be creating something that = represents nothing. See also this RFC: https://wiki.php.net/rfc/objects-can-be-falsifiable = - sounds like this = thread might bring more supporters to that table/discussion. Cheers, Josh= --Apple-Mail=_A25B567E-1432-4B56-9A14-D2E3F292902F--