Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119081 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15272 invoked from network); 3 Dec 2022 22:45:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Dec 2022 22:45:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A7AC5180503 for ; Sat, 3 Dec 2022 14:45:56 -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.5 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE,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-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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:45:56 -0800 (PST) Received: by mail-ej1-f43.google.com with SMTP id vp12so19417028ejc.8 for ; Sat, 03 Dec 2022 14:45:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=negyesi-net.20210112.gappssmtp.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=DvctS40HDHLpAv9CYRF/94WvL2097SCbzgiTHFkySjM=; b=4OTNOQsF8UCkhR6VHghV23Zpus5a+QNyDxM1Gu2ihD4WA6BYrsT+0FLx0bHpMv0lbG bwg2paMGxsVQLaALFPAM/lfWmniN2RuV7Gmj2mhqMMj0ArBN0JmJj2wJDZi4+g69eQCm JgrGhfXK/lSgH1S/XBRvpFH6Y+wXl765fGRdFWf9GgkiAAOD4ZmlSXJI1iQLM3VyJ4+H OyEIpOPh38SdGBfrdtlE4pFlqVvGikdXfuewHmiSZNnMqrOpvdDPRsO2xxlGwe2IOxKa tlt509Q1cUh3MYsYLUiLIdFUtNaknjo4a2g7w6+J4ZSKX4jTmxwggw5cw4AeJmcT2n56 jH4Q== 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=DvctS40HDHLpAv9CYRF/94WvL2097SCbzgiTHFkySjM=; b=In6tkLe2176nz07i5b9FgxsKeZ1uOctGLQhEkxHJRvoDHEc0aZYDvJn7k/r426UXOI nLqM+6AZhIQQr9m30Z1O6NTYGpPtGbx1Xa6f1hqgH0UHdlgBSO0zreQHnj3hND4O4hcY Ydv8OLxw3hcLWIGcGVJ78YRvfhPaox+EIQjkZMlwon9hVsql8E6PlqxkVfOov/JSynkr 74koa6RCNmca3Ip+nlF2oRQFysZ98Txt0Td8Fm51xZqt07HQTVwJGmJosyYMltBC75Hq ofu+GAgmKPjKPv6JjghkQHIL7Dqle1BielCbwZrB6fcOhVoiwwjc1a812O0e/eYcu14s e2cA== X-Gm-Message-State: ANoB5pnfdvl/rbAoG8gRvnbsmOqKNm59ES6+tw8NNGFncqw+MJfN2AEe oew+BDC+z6T0ogkc4UX5m+hZXKdP72B2OkkH X-Google-Smtp-Source: AA0mqf5ZzLoTjFVibLDeWCHv+SFAAuRLlsSispPY2+Y89W4E+qWbWO5codVr+fGrSRF1oX27hIGcaw== X-Received: by 2002:a17:906:ee2:b0:78d:3f96:b7aa with SMTP id x2-20020a1709060ee200b0078d3f96b7aamr49832029eji.74.1670107554891; Sat, 03 Dec 2022 14:45:54 -0800 (PST) Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com. [209.85.218.49]) by smtp.gmail.com with ESMTPSA id h11-20020a056402094b00b004589da5e5cesm2527425edz.41.2022.12.03.14.45.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Dec 2022 14:45:54 -0800 (PST) Received: by mail-ej1-f49.google.com with SMTP id fc4so12462976ejc.12 for ; Sat, 03 Dec 2022 14:45:53 -0800 (PST) X-Received: by 2002:a17:907:11de:b0:7c0:e4b6:47a5 with SMTP id va30-20020a17090711de00b007c0e4b647a5mr1214778ejb.480.1670107553613; Sat, 03 Dec 2022 14:45:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 3 Dec 2022 14:45:43 -0800 X-Gmail-Original-Message-ID: Message-ID: To: Marco Pivetta Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="000000000000784fbb05eef43719" Subject: Re: [PHP-DEV] Please allow an out of readonly properties From: karoly@negyesi.net (Karoly Negyesi) --000000000000784fbb05eef43719 Content-Type: text/plain; charset="UTF-8" I do not have the luxury of designing my own system. I am forced to use upstream. I can't help it and given the history of private usage and the refusal on relaxing them I do not see this improving with the readonly. At all. On Sat, Dec 3, 2022 at 2:42 PM Marco Pivetta wrote: > 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 >> > --000000000000784fbb05eef43719--