Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123578 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 738531A009C for ; Tue, 11 Jun 2024 13:36:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718113085; bh=D+ZbFSUsIyNj6bZdwNVdZOLEMbA39iTu37JirVHuXX8=; h=In-Reply-To:References:Date:From:To:Subject:From; b=bjD2/LAogCtgjdjmHnpAlGPjnkg5C6vuY8e/sLJ26RLsO6FceamYC5cWPgGJd6Z5y SBtXul62Jdhnw5+WrIC5koCBwgsVn2/gMn+7SRo7AHsiacrc+teffkVodiAO9Hth1F 6BGmSWZVKXcJUrYBcgXpOdfo784gfg/fnvfaTaqTJcCvkcuE/HzHDJeA96D4yZcEA7 Y+pgPXTXFBbym0hkDXeV5Jfrk2rq7kGsJDhwGccC3O6I2YLJ+4BpK69x4eJS+gtTiB 6fmQoKPkmkoRA6DIYVUoCX6u5Lv8eNtD5XSQZcn1fkj465A8695qR/rHLBh57z7sPF 1+ILDip3sM3zA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 56A5E180050 for ; Tue, 11 Jun 2024 13:38:04 +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 fhigh8-smtp.messagingengine.com (fhigh8-smtp.messagingengine.com [103.168.172.159]) (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 ; Tue, 11 Jun 2024 13:38:03 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 03F7B1140126 for ; Tue, 11 Jun 2024 09:36:55 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Tue, 11 Jun 2024 09:36:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding: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=1718113014; x=1718199414; bh=30nIrBt3BGduQNePy1o1h dCMz4YM22TUm+O+OLkDROA=; b=rklDY8KYcILlLJiVQzogKc//yEs2nUCY1RJUD OKyrfOxylVAWQqkCLrErPa1rLotdWBhdUntS0t5VwRRtQfNwxztvHuYYMSCrMsg4 RrwPqiZpugMC0awsea11fdSLAbXeCrTUj/QehRIeiUEujXbNPTnV939gnToDCMqb e5SqPidHjCqi90kSqlyZ1JVco1NAj4ZHVZxu65/Fk8HAGbkVqX7xkuvOJdeR/f54 GH78cy19AbklFXhZiChrU1O0fj/CJ7L7iadGK5crPLQsG/wI09AhH7wbMn/1d/H1 Q0dzMyrRS7XgHzDj4/VLXNfUz7k9Mnu7FT8vxh/NcBnQPq3uQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=fm1; t=1718113014; x= 1718199414; bh=30nIrBt3BGduQNePy1o1hdCMz4YM22TUm+O+OLkDROA=; b=I 6d42wOc2nzThGOStNPeN8w/IprZIBRGSLFMB8T0b/sdyKYwfPnUBVWSuInHuTnvQ OnYb0Q7tKvqY55dANkNUNF8lJ6e7CcO46HNTGDLT4qgg40MABRTIF6zKevicSFDX EqHof5TS5TSek0hp8qPIEcE1/jTN1FKwxcnR/1aJD429i8K6ABFlw6u5a7+/5up4 iBqbgZ33I1pCSYUWbcMmo2zqnfu0v+LKjofz7pQOZVVbYn301a0DrGUCRWmmZ4k6 25YjOli/qdktf9TPiGbYJLyzVdQvodYUb/LMSQH/HSK99ngvfhjbc/dxSyL22f/m pa99rxZC/XJ8CD+6OcuQQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeduvddgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepffffffejffdugfegvedviedttedvgfejffefffej leefjeetveehgefhhfdvgfelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 74C281700093; Tue, 11 Jun 2024 09:36:54 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-515-g87b2bad5a-fm-20240604.001-g87b2bad5 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: <4d4df16b-af35-4245-85f4-016d66e8a4fa@app.fastmail.com> In-Reply-To: <43606ecd-8838-476d-8fdf-acc6dbe26359@app.fastmail.com> References: <0a6a61cd-f203-4dea-a7f8-97e6b885c52d@app.fastmail.com> <43606ecd-8838-476d-8fdf-acc6dbe26359@app.fastmail.com> Date: Tue, 11 Jun 2024 13:36:34 +0000 To: "php internals" Subject: Re: [PHP-DEV] [RFC] Asymmetric Visibility, v2 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Tue, Jun 11, 2024, at 6:47 AM, Rob Landers wrote: > I=E2=80=99m also not a fan of the prefix style, but for different reas= ons. My=20 > main reason is that it increases the minimum line-length, potentially=20 > forcing you to chop things down into awkward looking lines: > > public > private(set) > string $longvarname { > get; > set; > } > > I find that extremely hard to scan, but maybe others do not. The more=20 > natural looking syntax is easier to scan and reason about (IMHO): > > public > string $longvarname { > get; > private set; > } > > If I=E2=80=99m having to read the code, I prefer to have everything ne= ar where=20 > it is used so I don=E2=80=99t have to scroll up to the top and see its=20 > visibility. Granted, I haven=E2=80=99t used property hooks and I have = no idea=20 > how IDEs will help here; maybe it is a non-issue =E2=80=94 but I guess= people=20 > still have to do code reviews which very rarely comes with IDE powers. > > =E2=80=94 Rob I have never in my life seen someone split the visibility to a separate = line from the type and variable name in PHP. I don't know why anyone wo= uld start now, especially not because of hooks or aviz. I just checked = and PER-CS very directly states "All keywords MUST be on a single line, = and MUST be separated by a single space." So splitting it like shown ab= ove would be against standard coding conventions anyway. This is really a strawman argument. --Larry Garfield