Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110768 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38773 invoked from network); 29 Jun 2020 10:53:35 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Jun 2020 10:53:35 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5B81E1804DC for ; Mon, 29 Jun 2020 02:42:14 -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=-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,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-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 ; Mon, 29 Jun 2020 02:42:13 -0700 (PDT) Received: by mail-lj1-f179.google.com with SMTP id b25so13661333ljp.6 for ; Mon, 29 Jun 2020 02:42:13 -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=+MIiqjJdFJoa7IUD2PUr3DmCLsydIOABZGMXJ1Tvlo0=; b=RsHpD42yEi19p75GeU+Lt8ccakP4NoBQBt1U3cw8V7kPZJTjNXgbqrn90nY5OR5kRu 3l+N7SumbrgG1ilaGsc+HdnqPQoD7fIE9MxyevZPpcTB4O20hLVIjYQGlCIMit70y/dK 4VFqoTKmHJU5Nn5i72YKixdbkqD5MpQfdqFUYxbNWZoyyWelVYlZ2eOzZTRfzJC2mjDn GZf1O1v1TN7iJyFcQb+GtIS6LaoeKcHMp0buhzK4EdXJEA2sbqkn+MdNYkH1qEBhT4Az Ck+tlNpE9QYOLa2xOzOyQFYBFJydqzG2qS2MKUXY5tHRZEKPZxQoEiYntLLBi01qMnco 4JWQ== 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=+MIiqjJdFJoa7IUD2PUr3DmCLsydIOABZGMXJ1Tvlo0=; b=eHE6x0xfIwjzps8laCUBEFl0iv+1Lg9bQmKMmEuARvqhrS/V62Z08BTFn+Rnhlcft9 VnbXWXqMnGUNLI4NOKzzSwARU4XUjmMENsuPftA14eFOqXTRsAAdqxUfTuGuJnaGNCnI 3OZZHJ+tZNS8FCBFtEswo9XX99oRhzm+vjXLj1/eiX9TUpDDtdqmpZxWtYcmGyVEDh3m 7NLZmzAZ379nvy3baR4CVqBjXk1MbJUdlEvaYTLBgIsfM93c/nYBAmbl/+tuAFKdrNSm RDSVLFTwcrFKnWbLNFLTOn3qUDBwWYEMwFwNwAkBFtoeEwi3wGDDOeE898aQGdaH6DVg 5tbg== X-Gm-Message-State: AOAM531sc61RPXsRK7A43e2TdLHBN/hKUe0eeey4FDUUHjPpnV0duaO2 neGwYl9MFbByyKVROfkHBahccD6Ak9UeDuZhQpsjye+O24k= X-Google-Smtp-Source: ABdhPJyw2z2gku5YtTmymPXJ+tyvu/pc+fpgtrYvHuD9IAzxz8hUXxVTVEkgqImvIYAzVDevDhG5CStyEAFxB1Udxb4= X-Received: by 2002:a2e:390a:: with SMTP id g10mr7126150lja.373.1593423730243; Mon, 29 Jun 2020 02:42:10 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 29 Jun 2020 11:41:59 +0200 Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000006afc4805a935df78" Subject: [RFC] Property write visibility From: andre.romcke@gmail.com (=?UTF-8?B?QW5kcsOpIFLDuG1ja2U=?=) --0000000000006afc4805a935df78 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Good morning Internals, I'd like to start discussion on a new RFC proposing a way to be able to (optionally) specify property write visibility, separate from read: https://wiki.php.net/rfc/property_write_visibility This enables readonly, write-only and immutable like semantics for PHP's properties. These are the common use cases where users tend to resort to magic methods or setter/getter methods. This proposal will as such avoid unnecessary boilerplate, makes coding easier and more ergonomic, and in the case of magic method usage improve performance. Best, Andr=C3=A9 R=C3=B8mcke --0000000000006afc4805a935df78--