Re: Singletons

From: Date: Wed, 05 Feb 2014 14:08:12 +0000
Subject: Re: Singletons
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-72274@lists.php.net to get a copy of this message
2014-02-05 Johannes Schlüter <johannes@schlueters.de>: > On Wed, 2014-02-05 at 13:09 +0100, Sebastian Krebs wrote: > > Beside this: Thats how it works in all me known languages. I don't know > any > > language, where a pattern (in any form) is part of the core. > > You mean like PHP which i.e. ships Observer pattern? > http://php.net/splobserver > > OK, it's in the core, but not part of the language (somehow). You know, what I meant ;) > That said: We won't add singleton. Creating a trait in userspace is > trivial for the ones who really want to use it. > > johannes > > -- github.com/KingCrunch

« previous php.internals (#72274) next »