Hi! On 8/14/11 1:39 PM, Sebastian Krebs wrote:
Counterquestion: Why shouldn't I use functions? They exists, they are
Because 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 the
Please 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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php