Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108681 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 21111 invoked from network); 19 Feb 2020 19:36:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Feb 2020 19:36:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5E74318054C for ; Wed, 19 Feb 2020 09:52:15 -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,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,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-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) (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 ; Wed, 19 Feb 2020 09:52:14 -0800 (PST) Received: by mail-il1-f170.google.com with SMTP id g12so21333154ild.2 for ; Wed, 19 Feb 2020 09:52:14 -0800 (PST) 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=qHE3S1UEo4MPBs3JPnxbNVsenk2mCxhV6y1dMkvbJ/Y=; b=VW9x/m+iX+aENDg0+nFne0hkdbGns8gk/vMpu9iu8QUfs9imdRHIRPRTsmr7xdk47U WSAjTJTofVdoRfPVTXef5Vg7xGINAyP12gPEHV3daRE98ch9KWJ3FNsXmUtPAQF+yaLe qik13htiLm5GdaNzHS5/1+/B6FsRvQSnxIPfsgeiaRsM5uwvT4hP12LZ5iPw1aq6yB8L RTFEhQIH5NZJD9TZnZbhZYuvhyEtdxBmBAqCOHUBCJTc0+iU+j5eFqZotGa73OEWE3Wx MrYv9HPpu59VTulz50wg0v9xjnX670SN3dDeWw9bi4hEcXi21sU+kmxdQxLZLbELReAM Yv+g== 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=qHE3S1UEo4MPBs3JPnxbNVsenk2mCxhV6y1dMkvbJ/Y=; b=ddUXHqJOtPICA+cCEToW2yr+0Q4WYtRucxwtBzskkWIbgiNYWp0ZtPbJ3imBOYePt2 D43mqdNUWkE+ISizJ/DmS3Xt2VMbEv9mGK0lq06XeaG0DvTGTd+XqYXbj/e51HFBu6aW qiHZ8/5fwAl15Mc1vtmpOtxNuN5bIk5Ww/QVLMf2epHclNouaNoGLa91LlzKqpUPFYnZ dyAGDfPpp6u874Ez6rl8hp7sk/zR43zmmaj5Stm/yHO9/f2ZsrZvwuN+zfUcpv6HD7Le UJfA+ztqYOIvHzhhmcRHqD4wWOZg8Gs+u3diITGd+FFxjp0pXQBWYSGpk+RGxt/v2RKf ExFA== X-Gm-Message-State: APjAAAXiuToHiS9szdDLvMT6CEbyjq5IIHuck0DUkRk2wB59b4XA1Rmf mcJXTmQY540WuRqRJ3FAUUfBpcyw+ZINdJn8V0w= X-Google-Smtp-Source: APXvYqwc02yLjUQWuO8LeKQFUfW9cogeCCq9+OdaUP11VnDHj4Mapa7oC+vEFOnQtXnZRv2+GPQ7DahAKdtvPRfT1kw= X-Received: by 2002:a92:3a4b:: with SMTP id h72mr25912415ila.292.1582134733554; Wed, 19 Feb 2020 09:52:13 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 19 Feb 2020 18:52:02 +0100 Message-ID: To: =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= Cc: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000c7c81f059ef172b7" Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] Immutable/final/readonly properties From: ocramius@gmail.com (Marco Pivetta) --000000000000c7c81f059ef172b7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey Mark, Asking here as well, so that others are aware: is `unset($this->aPropertyThatWasNotInitializedBefore)` still working with this patch? Also, are the semantics around `__get`, `__set` and `__isset` the same as with typed properties? In the RFC, you have `unset($foo->c)` as disallowed: the property isn't declared nor initialized though. I'd expect this to fail only after first initialization? Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On Wed, Feb 19, 2020 at 6:06 PM M=C3=A1t=C3=A9 Kocsis wrote: > Hi Internals, > > I'd like to move my RFC forward to the discussion phase: > https://wiki.php.net/rfc/write_once_properties > > In short, I propose to add support for a new property modifier that would > allow properties to be initialized, but not modified afterwards. > > Cheers, > M=C3=A1t=C3=A9 Kocsis > --000000000000c7c81f059ef172b7--