Re: [RFC] Function autoloading through spl_autoload*
| From: | Stas Malyshev | Date: | Sun, 14 Aug 2011 21:06:41 +0000 |
| Subject: | Re: [RFC] Function autoloading through spl_autoload* | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54597@lists.php.net to get a copy of this message | ||
Hi!
On 8/14/11 1:39 PM, Sebastian Krebs wrote:
Counterquestion: Why shouldn't I use functions? They exists, they areBecause if you want to use functions of similar nature organized in a package, that's what classes are used for. You want to do something that goes contrary to how language is designed and then you want language to change to fit your wrong usage. I don't see how it's good for the language.
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 thePlease don't distort my words - nobody asked you why you need to use functions in general. I asked why you don't use mechanisms for grouping functions that exist in the language and work just fine with existing semantics and instead want new semantics that has its own problems.
language since ever. And (on the other hand) static methods are imo just something different.How different? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227