Re: RFC: short and inner classes

From: Date: Fri, 14 Mar 2025 21:48:36 +0000
Subject: Re: RFC: short and inner classes
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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]

Thread (102 messages)

« previous php.internals (#126769) next »