Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124620 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 8B0621A00B7 for ; Fri, 26 Jul 2024 15:35:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722008228; bh=c7/00BMfqA7MukuTVbukAI7OxeRKhZMeuIl8oS6kxAs=; h=In-Reply-To:References:Date:From:To:Subject:From; b=aP/6JaAenHk/5FU67rIiuGr0Si6oWsVRhKpYp32DQFN7/vgihUE0ISD2IGZ4GYrAX Cz0QC9W7UTMhgtCdJkQJ9ozPIa90iJuzxc3VO7Dr1YVjD6X0Cpk60y2ssEkzrMwE6S ZCxWKR2QTQyP9UYnDh2nROid8NcBgWck/75DZlQK3hE7RoM1d7dkrUw0uGL5NudJSM pBdrcSLxDuPShbbgc9OoIGCKcVFIAiVJwY/VNS25n51y9xeCN/GJaDRLjjaoVXi3VQ 2wCYsN0ghBAz8tliYj1NDq1CUR5b/xvOa0avTZsNSVqSJcNGH2ShB+V5cta4mBZyx7 8jVP/brpIbHWg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BDF32180039 for ; Fri, 26 Jul 2024 15:37:07 +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,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh3-smtp.messagingengine.com (fhigh3-smtp.messagingengine.com [103.168.172.154]) (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 ; Fri, 26 Jul 2024 15:37:07 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 7EFF811400AA for ; Fri, 26 Jul 2024 11:35:30 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute3.internal (MEProxy); Fri, 26 Jul 2024 11:35:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1722008130; x=1722094530; bh=c7/00BMfqA 7MukuTVbukAI7OxeRKhZMeuIl8oS6kxAs=; b=IEUktHZTzihFmKSIKBDjj79Qva u1x5mKTIW4jJck8PhwRVygpJ6WTx9o9azb91oFYHipM4UyHzogsIFuKujOl0Bd3g Y8A+Ua2p0SjsdAiZQyUVuhVYxw37nVRq/gxeZag2LoapSFGwN4t3xEFCQeoNX8Uj nQK9wLov8KVSNFoPDAh8H0zshNzJDrkczNapL2T/39hXuGWEvA/Y9NDdz7Y0Vx0P iwJNWJKDh2oDz3JPHfDDCS95+JBcgEZ5UaEfppILZNWWwyQb2B1kd4CTG8GhWaKk 5EAnePgh0U6YcFDQdjhRFzMY7UXiHPZWbQ4f1rpKfbjjteQeNZtyCUuOFlLw== 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:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1722008130; x=1722094530; bh=c7/00BMfqA7MukuTVbukAI7OxeRK hZMeuIl8oS6kxAs=; b=BioOOI5RbFXduRQPpOYWULK4z4Yum/Zwp4x+Zx+uE3jq MBXvlXmwqgA2motzIoTvrU8I1VIA0Z07mWyQv1vNoRNqNCHlIrYYpLHWm4KmypKi pDDzRzZ0w++PcOY51Qel7KiqjgH+hHzdweTja/uG1GLuEXDPsVviXQM5vPS6kkIe vjuvuMsaBHStrK4+B7swDbYD4U7VKjSlTzfrgHHrBgJMbN2iEFmHWtvgl7B+r2rm WnbzlnpBI7xKSXJC+5L4vW1VubEHur5Zmxeg7oMXJfaP6CubAtsszgxb+Aez20xD udKaF4BB1FI797iniQ74wB3T0F2o41CG+/by/M0lNg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrieehgdelvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreerjeenucfhrhhomhepfdftohgsucfnrghnuggvrhhsfdcuoehrohgssegsohhtthhl vggurdgtohguvghsqeenucggtffrrghtthgvrhhnpeeffeduhfduudeikeekudfghfdugf eljefgkeeghfdvieekledvvdejheetgeetgeenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehrohgssegsohhtthhlvggurdgtohguvghspdhnsg gprhgtphhtthhopedt X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E65FE15A0092; Fri, 26 Jul 2024 11:35:29 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-582-g5a02f8850-fm-20240719.002-g5a02f885 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Message-ID: <7b295e3d-68fc-47b5-81ee-e5e09d7c17a8@app.fastmail.com> In-Reply-To: References: <0a6a61cd-f203-4dea-a7f8-97e6b885c52d@app.fastmail.com> <66c4ac1c-b3d7-4b20-b986-1fe1a464f485@app.fastmail.com> <4e7714cb-0d88-43f5-aa30-9adb799e0b28@seld.be> <161d5b04-4d94-47e9-a248-61639d688381@app.fastmail.com> Date: Fri, 26 Jul 2024 17:35:07 +0200 To: internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] Asymmetric Visibility, v2 Content-Type: multipart/alternative; boundary=8373db61504a4ed7bd1ba1994f3c0fc2 From: rob@bottled.codes ("Rob Landers") --8373db61504a4ed7bd1ba1994f3c0fc2 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Fri, Jul 26, 2024, at 16:27, Larry Garfield wrote: > On Fri, Jul 26, 2024, at 12:58 PM, Rob Landers wrote: >=20 > >> And now that I see it spelled out more, I do agree that while it ap= pears a bit more verbose, and this "(set)" looks odd at first, having al= l the visibility upfront is a lot clearer than having to read through th= e hooks to see what visibility applies. > > > > On a large property hook that potentially span hundreds of lines, I'= d=20 > > rather only need to scroll up to the "set =3D>" to see how it is set= vs.=20 > > going all the way back up to the property itself. >=20 > If someone has a property hook that is hundreds of lines long, their c= ode is already crap and there's no hope for them. >=20 > --Larry Garfield >=20 True, but we don't always get to choose what code we work on. =E2=80=94 Rob --8373db61504a4ed7bd1ba1994f3c0fc2 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Fri, Jul 26,= 2024, at 16:27, Larry Garfield wrote:
On Fri, Jul 26, 2024, at 12:58 PM, Rob Lande= rs wrote:

>> And now that I see it sp= elled out more, I do agree that while it appears a bit more verbose, and= this "(set)" looks odd at first, having all the visibility upfront is a= lot clearer than having to read through the hooks to see what visibilit= y applies.
>
> On a large property hoo= k that potentially span hundreds of lines, I'd 
> = rather only need to scroll up to the "set =3D>" to see how it is set = vs. 
> going all the way back up to the property i= tself.

If someone has a property hook that = is hundreds of lines long, their code is already crap and there's no hop= e for them.

--Larry Garfield
=

True, but we don't always get= to choose what code we work on.

=E2=80=94 Rob
--8373db61504a4ed7bd1ba1994f3c0fc2--