Re: [RFC] Function autoloading through spl_autoload*
| From: | Nikita Popov | Date: | Sun, 14 Aug 2011 14:02:35 +0000 |
| Subject: | Re: [RFC] Function autoloading through spl_autoload* | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54583@lists.php.net to get a copy of this message | ||
On Sun, Aug 14, 2011 at 3:55 PM, Derick Rethans <derick@php.net> wrote:
> I understand the proposal, but I don't see any compelling reasons in the
> RFC of why we actually need autoloading for functions? For classes it
> makes sense because there is almost always a class to file mapping. For
> functions (and constants) that is not the case, so I am wondering how
> useful this function autoloading actually is.
As Sebastian already mentioned, if all functions in a namespace are
grouped into one file, it would be simple to load that file using such
a concept.