Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119080 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13854 invoked from network); 3 Dec 2022 22:42:41 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Dec 2022 22:42:41 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 107541804B5 for ; Sat, 3 Dec 2022 14:42:40 -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=-0.2 required=5.0 tests=BAYES_40,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, T_SCC_BODY_TEXT_LINE 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-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 3 Dec 2022 14:42:39 -0800 (PST) Received: by mail-ej1-f44.google.com with SMTP id ud5so19404970ejc.4 for ; Sat, 03 Dec 2022 14:42:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=W47lLmayBjZAE5RXbYNsGyADodakaLlWhjFpkxn7o+o=; b=CsV+6OiftRC8PbZ3OKFYdqcH31NXkYtE7wlxUuWxYYJF8tjKYRCtmXmmJMoiB+gNyx qaw6hWQlnMIcVCRZKrkSSyyy2NvXC7dFw65E6bI+tzeptP91kA14fiZ39lcmrrzca0dc Znz1EEqHr9sGJ3C7jSCHkITId1aAqa73HodyedqwhEVfBYRupsyGsC+fxenMHldj8J5V +alZHmxH2+uoFpvakUYinW+E0oLr/ldriiVGPjMUQs7M1pL7B+607l/1Qb6jp8rhfQ36 em3Ign4ifyRoav2FIWrDsLH878buZxjfjD9fwcTT3diFlygI1beFUVnKFZQjTVuYLQAl lmig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=W47lLmayBjZAE5RXbYNsGyADodakaLlWhjFpkxn7o+o=; b=tSrjqRLKSS0QggibCmWrgHQN9wSz6tgkPvnbVOUJUSgznLgIErCmq9OSl+yWoLN2gt 0YCekoCR8ZRW5qvv+/zReEUY5dWHRISXc/hcF02xjeRMv1bll93JX6m4iNreuw/QlOmy MNIY+HrNnlOcd5fN/4Q8v+9C14lYlsWZ6SVoQLXtRscF7+bB9JrpsA2biIRSKe8vLkI/ /pb2P/snQl8RsA9wTfb2r3H9c993Y48Nv8WszGxgqhKuhgWEdBkxzsJTt5Je3b5Lnv6B i2yBE3aDS6CtUkJg1NnFUtoCaJyoE65RTKhNmzTuBZ3Q4461pTXE0gHiMtK1W/s9kumz T/bA== X-Gm-Message-State: ANoB5pnmde6YPlFE7KLgAKgFVfuHJE31lB6WFo9eajXvH9y5qYthbhpe EdA4wZKNwlGsrLeRk9fJh0i2MvHMVAh+cTT03U8FeCM6APs2Xg== X-Google-Smtp-Source: AA0mqf6mXbQ2l81XZl13NRfTDrqOsSaGVxuIj4zSpRR//lFHfdlcH7Au3c7Jw8/s5UOwWtHt4T77w7obFttqVzMksWg= X-Received: by 2002:a17:907:3c12:b0:7c0:cd7d:fb39 with SMTP id gh18-20020a1709073c1200b007c0cd7dfb39mr5416203ejc.288.1670107358133; Sat, 03 Dec 2022 14:42:38 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 3 Dec 2022 23:42:26 +0100 Message-ID: To: Karoly Negyesi Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="000000000000d182cb05eef42b6a" Subject: Re: [PHP-DEV] Please allow an out of readonly properties From: ocramius@gmail.com (Marco Pivetta) --000000000000d182cb05eef42b6a Content-Type: text/plain; charset="UTF-8" Terrible idea: reflection is mostly introspection tooling, and doesn't really bend the rules of the type system, other than crossing scope (it "sees" more). Please consider designing your system to consider the constraints of `readonly` properties, or design the constraints to fit your system instead. Marco Pivetta https://twitter.com/Ocramius https://ocramius.github.io/ On Sat, 3 Dec 2022 at 23:39, Karoly Negyesi wrote: > Hello, > > If push comes to shove, private properties can be changed with reflection. > > Readonly properties can't. > > Please add a readonly toggle to reflection. > > Thanks > > Karoly Negyesi > --000000000000d182cb05eef42b6a--