2011/11/10 Pierre Joye <pierre....@gmail.com>:
> On Thu, Nov 10, 2011 at 11:13 AM, Patrick ALLAERT
>> Some are blocking because they kinda feel forced if this is introduced.
>> Ignore those, PHP wouldn't have bundled ext/mysql for the same reasons
>> about 15 years ago.
>>
>> I guess that some voted "No" because of lack of consensus.
>
> What amazes me is this exact argument. We never had, in the whole PHP
> history, so many leading projects agreeing on something, together and
> propose it to the core. I, for one, have been waiting for that to
> happen for years (PEAR, etc.), and now that it is happening, what do
> we do? 'No thanks', for whatever reasons. That's so wrong.

The many "leading projects agreeing on something" is the PSR-0
standard[1] and NOT about how it might/should be implemented in PHP
[2], nor about a possible native implementation[3].

Repeating some other's concerns, including mine:

1. Registering/Unregistering: What about removing
SplAutoloader/SplClassLoader [un]register() in favor of changing
spl_autoload_register() to accept an SplAutoloader object or
implementing __invoke()?
2. SplClassLoader: Name does not reflect the PSR-0 standard at all,
nor are autoloader just for "classes" (interfaces, traits,...) =>
SplPsr0Autoloader? In any case, that class is misnamed.
3. Would the implementation be friendly for (namespaced?) function
autoloading? (Doesn't exist yet but has been raised multiple times.
Might be wise to consider it while developing an "SplAutoloader"
interface)
4. Should INI directives be considered for configuration
(default_autoloader_class, default_autoloader_path,
psr0_autoload_file_extension, psr0_include_path, ...)
5. Included/Enabled by default?
6. The different methods of SplClassLoader might be defined in
separate traits for higher reusability.

Can those technical concerns, as well as all the ones I missed, not
involving the standard, be addressed prior to voting?
Some "No" votes might then probably be turned into "Yes".

Cheers,
Patrick

[1] https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
[2] https://gist.github.com/221634
[3] https://gist.github.com/1310352

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

Reply via email to