Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102855 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8045 invoked from network); 16 Jul 2018 16:07:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2018 16:07:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=netmo.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=netmo.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.180 as permitted sender) X-PHP-List-Original-Sender: netmo.php@gmail.com X-Host-Fingerprint: 209.85.216.180 mail-qt0-f180.google.com Received: from [209.85.216.180] ([209.85.216.180:42978] helo=mail-qt0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/AD-39793-1D2CC4B5 for ; Mon, 16 Jul 2018 12:07:46 -0400 Received: by mail-qt0-f180.google.com with SMTP id z8-v6so24808862qto.9 for ; Mon, 16 Jul 2018 09:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=I6CSciShpelRuTs80ZjehzXkEtc6I4fRN3baDi7nIYM=; b=dlgDB4bLoB7NR5hc1FoaU1Cnwe6+7nGibXeCJ2awH1LjiRVGwYZpmUl7VRGSvuh/Iv 050zvhbcMw4cl35rr1AFWGzI1JJV2N1wcyBkH8k7machrVrD2rofemxgER4kX8KhOfYJ 2myozTGQ5UhlIQ7WF0jpMFzxFT3Ud5KT4dVQhmelYCLvD147cgJsu2msD0oZbeSQZ65O ueJG/naBuvnwPJb4fiUe0Y6gFrjXzotFwJHse48pMfO/NBK9EPuuyvd4AuVKfsidoL6+ wb3wJjcY02cjoN+DjahgAXkRoIviDWgCNIpu0PW7EI713CpbOyUuPMdtlZt+CHO0Oqcr eirQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=I6CSciShpelRuTs80ZjehzXkEtc6I4fRN3baDi7nIYM=; b=Os2mBdLkE3lghyp/beXQqmDMFJ/LKM78bh7zk5gkOq+0JQmRckFd5T1xl7bk9hVV3z 4Tf9R9EAottBcYYkSS+61bZjgnDci5+rSe5B5AR/JBqvLOqYBKSzkEvaH/grzhd5yeIr QmdZKNQSvVhjKo5McSWTUA9gJQrM45jaalnh3LJufnTWd6yVawmuJBOOknHwkrewhnNQ 1v266SjOrJiKFu8r6od+AnWktUVvvNjH7K4nR060Oi+o6XdqoQA3lIMDG7GZLD9oN2r5 dbx7gsxBeY6fqisk9Wk2F4I54gFfh/5U19Up+0bBqpqyGZyoI/eI6WZc1FJeJAdfOujM 2UQQ== X-Gm-Message-State: AOUpUlGMefEvzbfyLtMRVUYY357IOh52BfXA+rCT1sqP9ySLnyi8U7R4 w/B+DhJ1FKMRH2obFntMVkuZCkbus/slbcT03no= X-Google-Smtp-Source: AAOMgpestCKUjfThHR2wUFm8dDC/ruO8d4z0Y4dfvcYP2ZrcYXsCvAloXhAl8DFF0M7Tq9lkmQFIcjIKEKKnKlWmy9A= X-Received: by 2002:a0c:9d0b:: with SMTP id m11-v6mr7769514qvf.228.1531757263611; Mon, 16 Jul 2018 09:07:43 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:34f0:0:0:0:0:0 with HTTP; Mon, 16 Jul 2018 09:07:42 -0700 (PDT) In-Reply-To: <8916EC21-D368-40F8-9ABD-CE0C04A73539@gmail.com> References: <8916EC21-D368-40F8-9ABD-CE0C04A73539@gmail.com> Date: Mon, 16 Jul 2018 18:07:42 +0200 Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary="00000000000094699105712007c9" Subject: Re: [PHP-DEV] Non-nullable properties From: netmo.php@gmail.com (Wes) --00000000000094699105712007c9 Content-Type: text/plain; charset="UTF-8" I agree with you. If someone really wants to have an "uninitialized" field on purpose, they should do that using the correct type declaration, i.e.: ?MyType $myNullable = null; When this was started I asked if it was possible to check types right after object has been constructed, but they said it was inefficient to do so. If this is still true, then I'm ok with checking on first access instead. I don't want even more overhead from runtime type checking. This is definitely not as bad as the "billion dollar mistake" though. The error still happens, but in a different place. --00000000000094699105712007c9--