Re: Native Singleton Implementation

From: Date: Sun, 11 Mar 2007 10:25:52 +0000
Subject: Re: Native Singleton Implementation
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-28322@lists.php.net to get a copy of this message
scott.mcnaught@synergy8.com wrote: > Yes! Moving the singleton functionality into core php. Its an excellent > OOP feature. Besides the obvious implementation considerations (should the Singleton object be unique in a single PHP instance or across "all" PHP instances, etc.), I am very much against putting reference implementations of design patterns into a programming language. If you want this, you have not understood the intention of design patterns (or the difference (in degrees of freedom) when compared to algorithms). -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

« previous php.internals (#28322) next »