Re: [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript
| From: | Mike Schinkel | Date: | Sat, 29 Jun 2024 09:41:25 +0000 |
| Subject: | Re: [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-124020@lists.php.net to get a copy of this message | ||
> On Jun 28, 2024, at 7:45 AM, Rob Landers <rob@bottled.codes
> <mailto:rob@bottled.codes>> wrote:
>> Fast forward a bit - PHP 5.3, and the introduction of namespaces were introduced to deal
>> with the overloaded symbol tables. They are a bit a hotwire as (if I'm not mistaken, it's
>> been a couple years since I read the discussion on it) they just quietly prepend the namespace
>> string in front of the name of all new symbols declared in the namespace for use elsewhere. As a
>> result, PHP namespaces don't do some of the things we see in the namespaces of other languages
>> (looking at Java and C# here). For example, privacy modifiers within a namespace aren't a
>> thing.
>
> This would be nice to have ... maybe. But namespace have been around, what, 10-15 years? I
> think if someone wanted to "fix" it, it would have been fixed by now.
Or not.
Never underestimate the power of inertia for maintaining a less than ideal status-quo, especially
when the decision to change has to be approved by a 2/3rd vote of committee. 🤷♂️
-Mike