Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126769 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 7CD6E1A00BC for ; Fri, 14 Mar 2025 21:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741988780; bh=LhioBDd+Ytjb+/GE5ccn3tzrRxV9QD8BaaV6Uzd7Gic=; h=Date:Subject:To:References:From:In-Reply-To:From; b=h9ZJEzFpo5ZfDtZfhRmtG3vnBra7FDHJyn/zdcrCQVL4L41NBLjsdiGTxJphhAi1O AvL2IW4QBbUr+BD0sjIRFSGQ5p+EcurWNJ2360y/qNrFebbz0WEAM/qrFFDK9YNK+Q dMvN4DTastoQeYathe3Gvh6JNZdAKXD9laq/We3hPSOVsVYPjyOWaVblQRxcKSFBhn VR4Q+8777kb5vgtUMb+Al4+mexdkz19L6lJKMunEhwUTDvsXKKB7ZoEe7hw4oP0XIu cOafzchz8Cumif7X3/IKcvGLI9HxeHAIQ9wU5yZg18/Y+RseMXgk7FMI1RWjJvCWLc eLFsXJ6pDPC+g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AC75F180088 for ; Fri, 14 Mar 2025 21:46:17 +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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout-a4-smtp.messagingengine.com (fout-a4-smtp.messagingengine.com [103.168.172.147]) (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, 14 Mar 2025 21:46:07 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 9506F1382CF9 for ; Fri, 14 Mar 2025 17:48:39 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Fri, 14 Mar 2025 17:48:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; 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=1741988919; x=1742075319; bh=B0pCSeg8mbxfmSMQu2TWMiiz1Y5iKuBtWi6dJqly0M8=; b= H6p4BYxux8319qu6hkMb7qzV9hUKH98mkmO6XoH5ARG1x6J+tbHA/DWFx89kJEcQ RHWlmoWjKt2aObhRVhxpl0Uo13QnWVaz829whEjCj59XAz0bbBYVnnY+nlJRatLi 19QcwX5cesDsWPt13q7wtD3aa9+TzFiH2C0SsgNEL1ddMlwQINJqrgsrnr8lTMGK P9SN4LpOOUJm0EXwcsc0CRyeSW0iWBczcermHDm9drltZLvmHlB4hNqNg+LYdCbO SDB42blMqNXNBj08HVfip3LrI3TrBuXPsf0ci5GcgXrzeclKZ1fxoYOPZEB+usbI SCM6cm6fh9hV65IBSBfusQ== 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-sender :x-me-sender:x-sasl-enc; s=fm1; t=1741988919; x=1742075319; bh=B 0pCSeg8mbxfmSMQu2TWMiiz1Y5iKuBtWi6dJqly0M8=; b=Cp6mo1N6yCv/9giHH kiU+rRy3jFBMMCUcc1A1W0xjeQetagFoKGaWWcTjnWgU3Ec4pJQbPJrZNrFtcN9k O7HZjUD/cXEnBR3/e77ss6TxTDakpleusdiO8D2MkT940O5jyXaiPAVpTr2smKiG hbcULJ60e9CJd/kC1cl6KgQwbJXR7fD9QXLcaSwJjvNQpyzIcxv2OntWXTpUQ2IW q/gojBl9zHx9ZgzSwXrOhKTNBgypaT4ttK3ErNiNSI855hiHCHGuTLmqEb+14gxj KEia/LwRbc/Ms+6txlzI/jPzMMWSuSVmmW9Ntz+UYWR+lDJ6KgteaI3G1OQ6qk1t pBJ1w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddufeduleehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkff ggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpedftfhofigrnhcuvfhomhhm ihhnshculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqe enucggtffrrghtthgvrhhnpeejkefghfeugffgtdeuheeggfdugefhudekjefhteegieej leehveelhfefvdfhudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthht ohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslh hishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 14 Mar 2025 17:48:38 -0400 (EDT) Message-ID: <5ffd5a1a-6632-48ab-afe9-afc84d5ccc74@rwec.co.uk> Date: Fri, 14 Mar 2025 21:48:36 +0000 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] RFC: short and inner classes To: internals@lists.php.net References: <5aedb962-dfab-41ec-86ac-811dfe1074be@rwec.co.uk> <487b028c-20bd-4ebd-ab8f-972d9e633050@scriptfusion.com> Content-Language: en-GB In-Reply-To: <487b028c-20bd-4ebd-ab8f-972d9e633050@scriptfusion.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 14/03/2025 21:18, Bilge wrote: > Just because some (incompetent) developers cannot grasp proper > escaping should have no bearing whatsoever on language design. The main problem is not "grasping" it, it's the inconvenience of having to do it at all, and the "ugliness" (subjective, obviously) of the resulting code. Backslash is used as an escape in so many different syntaxes that it's not uncommon to be nesting two of them inside each other, e.g. Markdown inside JSON: { "markdown": "The inner class is called MyNamespace\\\\MyClass\\\\\\\\InnerClass" } The quadrupled namespace separator is still just about readable, but could you tell me at a glance if I have the right number of backslashes for the proposed inner class separator? If we can't use "::", I'm confident we can find one that's more convenient to use than double-backslash. -- Rowan Tommins [IMSoP]