drop singletons in favor of static calls
Jean-Christophe Michel <jc.michel-/aRvmaKoZxNWk0Htik3J/[email protected]> Tue, 01 Mar 2005 12:53:29 +0100
| Newsgroups | gmane.comp.lib.binarycloud.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Why not keep singletons hidden and use static calls ? Instead of doing $o =& Singleton::getInstance(); $o->action(); we would do SIngleton::action(); and action would in turn do $o =& Singleton::getInstance(); if it's not completely static. Would spare one line on each call without loosing any feature. Could be applied to Conf, Timer, Project... -- Jean-Christophe Michel _______________________________________________ dev mailing list dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected] http://lists.binarycloud.com/mailman/listinfo/dev