The case for a static class I see:

Over functions:
* Uses the AutoLoader when needed, no explicit require
* Nicely groups the entire implementation of hooks into a compartment

Over namespaced functions:
* Uses the AutoLoader when needed, no explicit require
* Gives us proper state across methods when we need it. Last I checked PHP does not allow namespace scoped semi-globals.


--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/]


_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to