Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102832 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40785 invoked from network); 15 Jul 2018 23:52:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jul 2018 23:52:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.192.178 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.192.178 mail-pf0-f178.google.com Received: from [209.85.192.178] ([209.85.192.178:41142] helo=mail-pf0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/44-39793-95EDB4B5 for ; Sun, 15 Jul 2018 19:52:58 -0400 Received: by mail-pf0-f178.google.com with SMTP id c21-v6so20777942pfn.8 for ; Sun, 15 Jul 2018 16:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2+qwg3cp6U4EW7kMBUXCvZhYSfMcgUnW72mYbQxUbNg=; b=GPSW1hjNAEycTdospuMoA6vg1to6Xu/ItLY7+TfX+yYzZCbg3YFJ2Uq+zBnkjb1l7k Gep+ilVJoTV++wuiEiTw3p2PisxIgth5S5Km9EGBFnMo8R9p23uAk+nh6tui9NaDvwsu AmG9FR/P5bg1ZqXU7FFkExHRzjKIeUr63YfmfKajoYuJWADEd+kobUmFF0n8kvyVE4EQ Dp7sgiIJ9PYYQJL0yVmdlDQabSYB7b/073R4aorigNDXN8MLx8CbSa7CoAjKJCGt5tnf pavKap7dGkrptR4BeLizuELInsyGjOeJ5tTJ3pq+vZOOz1Iyx1yxHbJcx9EjvM0YCyLB Z8LA== 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=2+qwg3cp6U4EW7kMBUXCvZhYSfMcgUnW72mYbQxUbNg=; b=TwqEDLsOgKFCQUeFxYhEdqwSr0jtGLBvbMFy3d9C6lA1qqKxpg/kAZl6VEQY8Zqno4 wp/Nlp0mZ0CYk8OtM68RDEjWIFzu6yViSVA2jPqlSk/cJKOiOigX4w7BpreNmq6afRSO 0VStJDW2e5ffg7wWck2AVt8TZWE73+4VsAudEav3NAkyS+k5pABnnk8ePyWkfyX7wClG VIP0OVEgNaWhcJRNXbocjXWm5ukU01CHCol1SSV3lvCWZ7c91TphM/k8nUR7QVZ0VzJY k44q8qD8GqxmvejfROOgWoHUCjBR6lJHF9QcyMzCdqa7XfOASKd5NmnrwE06DkKWGGQ2 tV8Q== X-Gm-Message-State: AOUpUlGRSAgdAQkzaJm0hvCI+q8RY118eJdzlrY3/x20qMSo3IgcMijI cDqpMunOLJCA/YYvO3sc8hFZ404mahORaHB6XQWLGw== X-Google-Smtp-Source: AAOMgpcD+5nj+fdL6p72yJK2UH7F1Vn6Qw+3EbUohjv7Fse7xIZMQXA4Qih1CK6BwGUMHnYYLICD0z3uUvvKAwsVoz4= X-Received: by 2002:a63:4b1f:: with SMTP id y31-v6mr13837606pga.14.1531698775158; Sun, 15 Jul 2018 16:52:55 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:87:0:0:0:0 with HTTP; Sun, 15 Jul 2018 16:52:53 -0700 (PDT) X-Originating-IP: [86.7.192.139] In-Reply-To: <8916EC21-D368-40F8-9ABD-CE0C04A73539@gmail.com> References: <8916EC21-D368-40F8-9ABD-CE0C04A73539@gmail.com> Date: Mon, 16 Jul 2018 00:52:53 +0100 Message-ID: To: Rowan Collins Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Non-nullable properties From: danack@basereality.com (Dan Ackroyd) On 14 July 2018 at 14:09, Rowan Collins wrote: > Hi all, > > The current RFC proposes the next simplest solution, which is to allow non-nullable types, and trust the user to initialise them before use. From the RFC: > If a typed property does not have a default value, no implicit null default value is implied (even if the property is nullable). > Instead, the property is considered to be uninitialized. Reads from uninitialized properties will generate a TypeError Are you miss-quoting the RFC? Because those two sentences are completely different. cheers Dan