Should I go with the Singleton Pattern or wait for 5.3?

From: Date: Mon, 14 Jul 2008 19:59:07 +0000
Subject: Should I go with the Singleton Pattern or wait for 5.3?
Groups: php.general 
Request: Send a blank email to php-general+get-276781@lists.php.net to get a copy of this message
Hello, I'm planning out a simple project and most probably I will need the functionality provided by the Singleton pattern. However with the next 5.3 release I would be able to conveniently use classes directly without instancing them. This would be a comparable option thanks to late state binding and the possibility to reference the class using a variable. What path do you suggest I should take? I can wait for the 5.3 release since I'm not in a hurry. I would like to hear your opinions in particular regarding the performance and code maintainability aspects. Thanks for your time.

« previous php.general (#276781) next »