Re: drop singletons in favor of static calls
Jean-Christophe Michel <jc.michel-/aRvmaKoZxNWk0Htik3J/[email protected]> Thu, 03 Mar 2005 22:30:30 +0100
| Newsgroups | gmane.comp.lib.binarycloud.devel |
|---|---|
| Message-ID | <[email protected]> |
Manuel Holtgrewe wrote: >> I thought I had responded - I kind of agree that proxying singleton >> calls within that class's methods is bad form, let's keep it the way >> it is. > > Hm, we should clear this up, i.e. make the log call not static etc. and > maybe make Request's ::get() calls static. > > Jcm, what's your opinion on this? Matter of taste. I suggested this kind of hack to have one less line and var in code. But true, it's not a very clean solution. I don't know wether php5 would change sthg. Let's close the subject. @Log: it's a bit different, since log is used in many places, and Log is outside of the code logic. I'm happy to have a single line and not have a $log var in every method. -- Jean-Christophe Michel _______________________________________________ dev mailing list dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected] http://lists.binarycloud.com/mailman/listinfo/dev