On Sun, Sep 1, 2013 at 12:36 AM, Vartolomei Nicolae
<nvartolo...@gmail.com> wrote:
>> personally Ithink it would be nice if we could provide a way for 
>> const/function autoloading.
> So you will create files for constants? One file with a single line defining 
> a constant?
>
> Did I understood something wrong?
>
> kindly,
> nvartolomei
>

Hi,


Yes, you understood it wrong. You can have one function / const in a
file if you want, but you can also have  a bunch of them in a file
like you have today with classes. And from what I read in the RFC,
someone else who read it could confirm if I'm right or wrong, there's
no mandatory function / file to use this so you can use it like the
current autoloader for classes is working.

This will be optional to use, like the current autoloader, which is
why we don't have PSR-0 in Core (maybe we should have a thread about
this sooner or later) and I've had plenty of use cases for a feature
like this. Who knows, maybe we'll have PSR-Y Autoload Reloaded which
will cover this as well :)

Like it has been pointed out already, it also allows the language to
be complete in what's offering and help some users along the way.

Do you, or anyone else, have a real reason to be against this rather that:
- I don't like it
- I don't/won't use it
- why do we need it?
- it doesn't belong to the language
- etc.

So, my opinion as a PHP user is that it's a nice addition to the
language and even if I won't use it, as long as it won't affect the
global performance, I can live with it.



Regards,
Florin
----
Florin Patan
https://github.com/dlsniper
http://www.linkedin.com/in/florinpatan

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

Reply via email to