On Thu, Jul 9, 2020, at 6:55 AM, Rowan Tommins wrote:
> On Thu, 9 Jul 2020 at 09:58, Dan Ackroyd <dan...@basereality.com> wrote:
> 
> > On Tue, 7 Jul 2020 at 15:47, Larry Garfield <la...@garfieldtech.com>
> > wrote:
> > >
> > > This has reached the 2 week mark, but there's not been much discussion.
> >
> > Unless I'm having a massive reading failure, this RFC has been
> > announced twice. And feedback was provided before:
> >
> > https://externals.io/message/109646#109647
> > https://externals.io/message/109646#109648
> 
> 
> 
> 
> It seems that, although still labelled version 1, the RFC has been
> substantially rewritten since that discussion.

Yes, based on the discussion in chat that resulted in actual guidelines, we 
mostly rewrote the whole document.  I've no idea what the rules are around new 
version numbers of RFCs that haven't been up for a vote yet.

> > From the RFC:
> > > Every new global class, however, creates a potential namespace collision
> > > with existing user-space code and thus a potential for backward
> > > compatibility breaks.
> >
> > This doesn't appear to be an actual problem for the PHP ecosystem.
> >
> > The vast majority of code in libraries is in namespaces, which avoids
> > there being a problem that needs addressing.
> 
> 
> And yet we have repeatedly had discussions about whether this or that
> feature should or shouldn't be prefixed with a namespace. If you think the
> correct answer to "when should we use the PHP\ prefix?" is "never", I urge
> you to put forward an RFC making that the policy.
> 
> 
> > Rather than having more rules (quite a few of which I don't agree
> > with), time and effort would be better spent on reviewing code and
> > using features before releases e.g. to avoid situations like the FFI
> > api being difficult to use.

Which guidelines in particular bug you, and why?

> 
> This is pure whataboutery; the idea that reading a few naming conventions
> will be such a burden that somebody would have no time to review a feature
> is frankly ridiculous. Nor will the lack of a naming convention mean that
> no time needs to be spent naming things - quite the contrary, it will mean
> more time is wasted debating every case.
> 
> It's worth stressing that naming conventions are not new - we've had them
> for global functions for many many years. We may talk about "putting things
> into namespaces", but PHP's namespaces really are just names, so this RFC
> could easily be called "update naming conventions for classes".


I fully agree that this is a why-not-both-girl.gif situation.  If anything, 
reducing the time that gets spent asking "*now* can we start using a 
namespace?" will open up more time for people to actually review APIs.  
Although since those are two very different mindsets I doubt that there will be 
any impact on available-API-review time either way.  (That said, more time and 
attention paid to developing clean, usable APIs can only benefit PHP.)

--Larry Garfield

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to