Re: [RFC] Function autoloading through spl_autoload*
| From: | Sebastian Krebs | Date: | Sun, 14 Aug 2011 20:39:32 +0000 |
| Subject: | Re: [RFC] Function autoloading through spl_autoload* | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54593@lists.php.net to get a copy of this message | ||
Hi,
Am 14.08.2011 20:17, schrieb Stas Malyshev:
Hi! On 8/14/11 7:02 AM, Nikita Popov wrote:Counterquestion: Why shouldn't I use functions? They exists, they are official supported, they are neither marked as deprecated, nor ever discussed to get removed at all. It feels a little bit weird to me, that I need to explain, why one wants to use functions, that are part of the language since ever. And (on the other hand) static methods are imo just something different. Regards, SebastianAs 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.Why wouldn't you just use a class?