Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125778 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 656D51A00BD for ; Thu, 10 Oct 2024 13:22:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1728566701; bh=NsJYXLnagnWGoPtSuYwEpgnLwgzb5foI1CZlMNtY3Mc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FHMdxEoGmupPEUXw1urSG31uly6ptYAKt5pB7rLKbjF9sBURknHUqlK0QFSBw4/uJ DpPyFVnnlohDUxlAt3Z9X7QyB/RUQNoQrp10dZMGkz6GDSDCRGoekbvdnXzOOyBLUL clhqGpErpxoDdeSMRS5JWMi+od7CbTU4QoC8jj7QzA1DEV7AQP9GLHe5MMSM1XLnEK 7+UP+9/k6tf3H84kq33wtSCJVbvmBpizToq6b6VS/Pyj0gZqcvxFgrmGJGTOQCdtWx 8vBOSCj3lpydpmMotx1Xy1ogd9sKAzfdD33c+Aa227frRPfwUKx+lkC0BzSbgEidiA w6PGwVYSDvgYA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5E37E180071 for ; Thu, 10 Oct 2024 13:25:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 10 Oct 2024 13:25:01 +0000 (UTC) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4311c285bc9so32605e9.3 for ; Thu, 10 Oct 2024 06:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728566562; x=1729171362; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NsJYXLnagnWGoPtSuYwEpgnLwgzb5foI1CZlMNtY3Mc=; b=HBZc0P298jr0vHuNuKLIXuA5RuYcxp2HBPLyXOOItfP3QTNo5xQBwv4OcBC144P159 E/EVIWAESuOe3ZDNLDJ10fj4MkgKcl8hdtHCwGqfQXJOK12OpDZjCW6tXt7LuljKUYEK 06A0BCqgN9tpyYak7F9cndy8H3DSLNC7sjKS3JWcudqoUUY/DsDheUVpeH12cMZiVJKT 6tyVTuHi/l0JmcN+HBH7lnX6GEI4eyg1/+mAPMTP/UchjiageqE00zYqeJcbZ8LSee4n wXmIwibgNjwI+Wbmhl4NTSU0owYupW3EAU2AICDH7ENXBOVykRDlTjfqHCBU+zw0q946 6kjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728566562; x=1729171362; h=content-transfer-encoding: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=NsJYXLnagnWGoPtSuYwEpgnLwgzb5foI1CZlMNtY3Mc=; b=NdJW9/hHBaiwOVl+Q0JZbIZqQxVrA4iLGa+4rVWA5Bx6j9lT6pKBRdh/rKQNSv4GcC pMZLin5IQ2+V6oOfX5JJGv0SebivFFBAb7JZm7upiV2TJ+u5L5Thi/Fc8T5NdmV2D3Hg 1HqD8oOeGu350fNfDsln92h/8Ixo9Rqw+8NXotzgMDcvabCoOjidhi6mbkoT1mwkJ+Ea op/1UCM3mpTp9AVnP292r1NwJ/vsgztTye3Vb8U3Xu4ZvdNhG4AJVG6u/beBvwiTgLPw 1mFd/Kg0DTSUUPIKArk3KaeJFTIz7OljFuponOIRegDKiwpay4EVJWoqDguyK5Tc9T9+ pdXg== X-Gm-Message-State: AOJu0YwFJ41mZPb1XN3oiY6sM973B/0yyUtTNNtO8GSwTeKCW9uCc3EW ii0Muolv3kc5nXyzLLNpoVxNbBMyh6ktVZR/EY3k4d8ksl+y0xjyKwHdnUZRzuZnZlh+uPqFxal MI1+aGrYPR6yQMLPloplA7r73hA== X-Google-Smtp-Source: AGHT+IFTJEmzYsoPPgQK/HC6QDvbIs4Aak25jDNdpvpgWjzYGMrS7weoumbtLgHAXOjNR8soHME/KfikMKKGGnKpFt8= X-Received: by 2002:a05:600c:1ca6:b0:42c:b750:19d8 with SMTP id 5b1f17b1804b1-431157a3907mr29151345e9.4.1728566561802; Thu, 10 Oct 2024 06:22:41 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 10 Oct 2024 16:22:30 +0300 Message-ID: Subject: Re: [PHP-DEV] Asymmetric visibility is a BC break To: Kamil Tekiela Cc: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: udaltsov.valentin@gmail.com (Valentin Udaltsov) On 09.10.2024=E2=80=AF19:08, Kamil Tekiela wrote: > > I have to admit I understood nothing from your email, but I got > curious about some of your words. Hi, Kamil! I tried my best :) Thank you for your interest! > > A readonly property is two functionalities in one: write-once and > private set. > > What do you mean it is private set? Readonly only means the property > is writable once. It does not affect its visibility. It in fact does affect visibility. For instance, you cannot write uninitialized public property from global scope: https://3v4l.org/4Xf2R The same fact is mentioned in the aviz RFC: https://wiki.php.net/rfc/asymmetric-visibility-v2#:~:text=3DThe%20readonly%= 20flag%2C%20introduced%20in%20PHP%208.1%2C%20is%20really%20two%20flags%20in= %20one --=20 Valentin