Re: Singletons

From: Date: Wed, 05 Feb 2014 17:28:39 +0000
Subject: Re: Singletons
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Nevermind, I see it. DOH!


On Wed, Feb 5, 2014 at 9:28 AM, George Wilson <[email protected]> wrote:

> Forgive me, what is FIG?
>
>
> On Wed, Feb 5, 2014 at 6:58 AM, Rowan Collins <[email protected]>wrote:
>
>> Ralf Lang wrote (on 05/02/2014):
>>
>>  Yes, I used them (and ArrayObject) on some occassions. I see no conflict
>>> between having them in core and FIG agreeing on their usage or something
>>> different.
>>>
>>
>> ArrayObject includes actual implementation, and the interfaces it
>> implements activate special behaviour in the core.
>>
>> SplObserver and SplSubject appear, unless I'm much mistaken, are
>> equivalent to about 4 lines of userland PHP each defining 2 very simple
>> interfaces. That's exactly the kind of thing FIG is working on, e.g. a
>> Logger interface. I can't think of any reason, now that FIG and Composer
>> exist, that those interfaces would need to be compiled into a PHP extension.
>>
>> Not that I'd argue for their removal, now they do exist, but I see them
>> as an old experiment in pushing coding standards using the core of PHP, and
>> not a useful model for anything new.
>>
>> --
>> Rowan Collins
>> [IMSoP]
>>
>> --
>> PHP Internals - PHP Runtime Development Mailing List
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>


Thread (13 messages)

« previous php.internals (#72282) next »