Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114729 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94480 invoked from network); 4 Jun 2021 15:05:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Jun 2021 15:05:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0AB111804CC for ; Fri, 4 Jun 2021 08:19:37 -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=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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, 4 Jun 2021 08:19:36 -0700 (PDT) Received: by mail-lf1-f53.google.com with SMTP id v22so13302135lfa.3 for ; Fri, 04 Jun 2021 08:19:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/XjIPgln+lVRcvtE4QvDqTU395fiHG/Mj+ufY6xN0bU=; b=HpozlqAXEbQJ4ZDqFMaOkeyKb8xSDJ5kAZm9CqkI7Wf9K2y0JWrF42lSmosRTPy4D7 ck0ZJ4qcHRawLwnLndThh74wSTGNvJM6/1VIm7Dol4mGh3VmM02fYyYxhGLjPq2vpz9o GT6boRqvDkFboGqXAfhuriMbdeT5oHk4E//FG5KgtMT8WT4AiiQofPoIr1y6pj+WftZn XWhc4qt2zO18PjtlVWq+P/zgyAfUoTcJVL/wewgcGEQ8zG+WO/sZXxv7nlyruN7eS3aW WtyNybFh6e10MqNwxwyVbU7tyGkmcD5gs0bTMsI4GyPOH4k/5cIMIzsvWK1EhUMYti5D JuzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/XjIPgln+lVRcvtE4QvDqTU395fiHG/Mj+ufY6xN0bU=; b=goJahj0KtkDrx99VCjs5UoNIu6XxDsDgbeozuValCq/tsw6jDYcNM/NfaxSWdL0pLg rD5IkjNr5TPyYc9u/bBgtpnc5yCvolqqd3JEMGb0ImmZD7sTcndrUn0avnnvhPiVnkKO vlKqQpvZ0DeKufetxy8iMcP1lUQJ8wPxfBFu0tMpxvEfWTVA0hdKR6X1sqg+tCGDV9ii N+n9S+kZ+cDUZBVWAjTQrA+gKzfC2kFVYQ0YLK1kRBR1LIzf7xSdG24tUw8qpibXDp0K fTtnLl/9j29lEe1lZ8QI6T6+xp+mR8AOtItWSrEEBKJK6lP3RszDWyENzesZlBethA7s MoGA== X-Gm-Message-State: AOAM530nspM77n/HDdLAitgy7cfcBbGCxvIdEEkjXQtBlJmzf+aou1M6 0mmYgl/XJebSEFlpHEvA435LnCjqBoj+ouyjf0tNJ/oQLX0DSw== X-Google-Smtp-Source: ABdhPJy07D4bD8WKUwtaN9oTl+4j4hvHC6e1ub8OMo3pAlZ5OQzr2wNWoUPFmzc8Yf680fqqKpq5KRatyz1uhxAc5vM= X-Received: by 2002:ac2:51a9:: with SMTP id f9mr3016638lfk.223.1622819973131; Fri, 04 Jun 2021 08:19:33 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 4 Jun 2021 17:19:17 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="00000000000008737105c3f238d2" Subject: [RFC] Readonly properties From: nikita.ppv@gmail.com (Nikita Popov) --00000000000008737105c3f238d2 Content-Type: text/plain; charset="UTF-8" Hi internals, I'd like to open the discussion on readonly properties: https://wiki.php.net/rfc/readonly_properties_v2 This proposal is similar to the https://wiki.php.net/rfc/write_once_properties RFC that has been declined previously. One significant difference is that the new RFC limits the scope of initializing assignments. I think a key mistake of the previous RFC was the confusing "write-once" framing, which is both technically correct and quite irrelevant. Please see the rationale section ( https://wiki.php.net/rfc/readonly_properties_v2#rationale) for how this proposal relates to other RFCs and alternatives. Regards, Nikita --00000000000008737105c3f238d2--