Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123456 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 9A5411A009D for ; Wed, 29 May 2024 19:16:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1717010244; bh=rsg2pf9WchjxMthpMpArJPAI0X1rvWBG3QJGD12TYGA=; h=Date:From:To:Subject:From; b=NWzD9oq4uokpHp0Ty7xavwuR6GU3DLbr8C1ASFHT6Ms9LFOBeY3hupHHEHpAWDFmz Dk4coNYxGGsHs/5Y9puOPP0uR2pAbISk44BbtaxMU+85tZ2IEYHJxx87Eu7ALFWeKX X3QdH+wHYmBAJSAUUO4cUqFtw5WTeDzgAVbbou667YfMvGnVy28JmnH1z89+Za1+Kb LflF6Udb22gcK1hNtbzR5hCrbieBMbFmlnNOv3z0rLDUF24qrbukE8fonrMyrU7blT 2eYlFYvbnRpGDicCQsJpfPLfo81y7WrZ02CTLvZ0zenz/vlICX2wbosAKBo6ssKxnL ruiXY6UVWga/g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8455018007B for ; Wed, 29 May 2024 19:17:22 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from wfhigh2-smtp.messagingengine.com (wfhigh2-smtp.messagingengine.com [64.147.123.153]) (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 ; Wed, 29 May 2024 19:17:20 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.west.internal (Postfix) with ESMTP id D25271800090 for ; Wed, 29 May 2024 15:16:17 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Wed, 29 May 2024 15:16:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm1; t=1717010177; x=1717096577; bh=l1nH+dtauc TtJ5bnIjyC7leA0rPB8UEsxN6mTvf43dc=; b=GrxhBvCFPZ6oGIiJm/W35FflSN YuZEJY6yaAJYEZBJVREhR6QMqoHS4UgX/TJ1ZXWnTM3NIlKt+S7X2375m6GLPiFK dLMlkrr3+bDdJaZ/TitCjy0JBPwIrgXk0AoaO3/O2Ad+sSPie/RmjEMJuD2EF5zt QoCP57y7SS/nJPxPFG8vEtmxD/RTM8KM5gURK4bId+NwMm2Kgu4rXAlfYumxDEq4 NMWrKjEETcDO4/YRQTRXK4DDcX/+pITgE8uOcEyaqmnno7Siai8m1gfdqFNABxDo gYlT0FJVrRlrUQx0C78/SLaCMIVhZDbS2PbUXNWJH3AdzfgznpCXF1vqR3Qg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1717010177; x=1717096577; bh=l1nH+dtaucTtJ5bnIjyC7leA0rPB8UEsxN6 mTvf43dc=; b=k5STOLQHbU+qNdIJiyvcKpudiulEWzfqlnD5r217oE0Bwki/TWE xbO0vQwa0sNVREa7WSJh+/niIDKC78an/OdRtT1Sa+3n3FQMIO+M8/nlz6q1+kov noWfdem7vyOJehggJ3cVzGZB/d6ZJz8EvYGOjtcl6syBc6gDCE1H3L49av5HoW8k pgTdIOcYMbhYaaClhsJIR2MFXXRs7NHMZHAMxsO6klM+6Kk0dGhhBO6+7AcTXgXj NVOARRHgfYhdeKwAQOrVviteljostaQ0TR+6ljfTKewOKW1jy7bfFHtlpcGi+ivp heOQC+odMQAU9+DqhTHrRcRtEKpecRoQ9jA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekuddgudefvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuggftrfgrthhtvghrnhepgeehffeihfdtkeefveffueeiiefhjeduhfeuhfdtteel lefhvdejteekgffgueeinecuffhomhgrihhnpehphhhprdhnvghtnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgv lhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3148E1700097; Wed, 29 May 2024 15:16:17 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-491-g033e30d24-fm-20240520.001-g033e30d2 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: <0a6a61cd-f203-4dea-a7f8-97e6b885c52d@app.fastmail.com> Date: Wed, 29 May 2024 19:15:45 +0000 To: "php internals" Subject: [PHP-DEV] [RFC] Asymmetric Visibility, v2 Content-Type: text/plain From: larry@garfieldtech.com ("Larry Garfield") As promised, Ilija and I offer this revised version of asymmetric visibility. https://wiki.php.net/rfc/asymmetric-visibility-v2 It's still essentially the same as last year's version, but with a few adjustments and changes: * readonly properties are now supported in a logical fashion. * We've brought back the abbreviated form, as public-read, something else set is the most common use case. * The section on magic methods has been greatly simplified. The implementation itself hasn't changed, but the explanation is a lot less confusing now. * We've explained how aviz interacts with hooks (they don't, really) and with interface properties (in the obvious way), which didn't exist at the time of the last draft. * We've added a section with examples of how aviz is a concrete improvement, even in a world with readonly and hooks. * We've added a section discussing why the prefix-style syntax was chosen. *dons flame retardant suit* -- Larry Garfield larry@garfieldtech.com