Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109175 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 98263 invoked from network); 21 Mar 2020 01:24:15 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Mar 2020 01:24:15 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 99CD41804D0 for ; Fri, 20 Mar 2020 16:47: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=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 ; Fri, 20 Mar 2020 16:47:44 -0700 (PDT) Received: by mail-lj1-f171.google.com with SMTP id w1so8316342ljh.5 for ; Fri, 20 Mar 2020 16:47:44 -0700 (PDT) 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:content-transfer-encoding; bh=Xq1fSsDk9WWX+PPsVFD57yyc3o1IJJO5JTIcRtKikKU=; b=HVLACUqfiehxYnjBi4P/nIIGAa/uVkRR738DzCzHR1W2NZcv5hIXQVBl5oX46nWHH1 Cg3YQxxQz0yrGwYg9iyap8UzdHre4Zh8bWBN0ddusEYl8Rv7ClOPeV4YeJXsSEYiWwOb SJKd3zqEs7isAO2GzXRfXS4s6kzgZAr0jAb5LtFJSKmtJZY4wXhMx3t641jGAU+kn30V k39683jxmYsQqwqvJ7mR390+j56BSJqgK8Tk8E+zdzEfT+zwgwZbUEjKfKzNgAP6PQRS otx4LdENYSW8lLADZE7gYLtinpx9UaUhPdt1kI0xEhZMqXgT24VmpHMpv76iNMiVEY2R Ebrw== X-Gm-Message-State: ANhLgQ2M1+l8aJ2XgQ4T0lfkfCR9MyU7/Z0Ll575z0TVWjZQzA3HcAyW 1JEHVjoej9Ytv/GsfxVHcVdsfAcoCvgtymDKnqU= X-Google-Smtp-Source: ADFU+vuv9RfVIwbbpLWc8NrSqbzAIDRE7azQHQ7/WuFrqB/nazKf3tbJaWJGzs00IpkOiKO9OTzWAVm1ODVeBNDyha4= X-Received: by 2002:a2e:b60d:: with SMTP id r13mr6750504ljn.185.1584748060361; Fri, 20 Mar 2020 16:47:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 20 Mar 2020 18:47:29 -0500 Message-ID: To: =?UTF-8?Q?Micha=C5=82_Brzuchalski?= Cc: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Compact Object Property Assignment From: jakob@givoni.dk (Jakob Givoni) On Wed, Mar 18, 2020 at 12:27 AM Micha=C5=82 Brzuchalski wrote: > Using Object Initializer enforce that if a class is instantiated with the= Object Initializer, > at the end of the instantiation and properties initialization, all visibl= e properties > (depends on initialization scope) are initialized, otherwise, a RuntimeEx= ception is thrown. > This helps to avoid bugs where a property is added to the class but forgo= t to be assigned > it a value in all cases where the class is instantiated and initialized. = https://wiki.php.net/rfc/object-initializer#restrictions Got it. Out of curiosity, would you be able to summarize why you believe your proposal was not accepted?