Re: drop singletons in favor of static calls
alex black <[email protected]> Tue, 1 Mar 2005 12:01:09 -0800
| Newsgroups | gmane.comp.lib.binarycloud.devel |
|---|---|
| Message-ID | <[email protected]> |
why? I like jcm's suggestion a lot :) _a > Jean-Christophe Michel schrieb: >> 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... > > This is only a matter of taste and I like Singletons better. > > > Manuel > _______________________________________________ > dev mailing list > dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected] > http://lists.binarycloud.com/mailman/listinfo/dev > > -- alex black, founder the turing studio, inc. 510.666.0074 [email protected] http://www.turingstudio.com 2600 10th street, suite 635 berkeley, ca 94710 _______________________________________________ dev mailing list dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected] http://lists.binarycloud.com/mailman/listinfo/dev