Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72278 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33459 invoked from network); 5 Feb 2014 14:58:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2014 14:58:29 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.41 mail-wg0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:55170] helo=mail-wg0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/B9-09402-29152F25 for ; Wed, 05 Feb 2014 09:58:27 -0500 Received: by mail-wg0-f41.google.com with SMTP id n12so5490993wgh.4 for ; Wed, 05 Feb 2014 06:58:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=C8eyQaFqbz7WvJmZTH7NYpEv0Krp6lBJlr0rzz5x6aQ=; b=Crn0rWFXKOGYQzrIaEYeCsQ2RR9YhW6Z32utdXK8FhHlJACXdCsz7Pkzc1D3Uj9DpQ VIQnK480Ri9TzV7SsCYWhS/3mX5ciTLWCss9FGHMfpFzYeeUGTh8Zd0sfGa9pjfTvAPp ozbGlXTVnQh/Ea5gqzB3E7Spc6IRho97pUnk3gfzCBmNRG36hLWJnBAuMOoL3oTz1a+7 Mq8bEfT78prenEvnALQCIxvhHajwTnuzXmodT87GE+0hMdGec0Ymy3TjaFyNZEEshiw2 pUcrv10y1kg4kQMPVnTmJf1IkoRvbNW4PQLuczoTUNDXyxHbwbUrf6IAjxIc7uNXFqsG TJ6w== X-Received: by 10.194.62.243 with SMTP id b19mr1633273wjs.63.1391612304367; Wed, 05 Feb 2014 06:58:24 -0800 (PST) Received: from [192.168.0.138] ([62.189.198.114]) by mx.google.com with ESMTPSA id f3sm9126823wiv.2.2014.02.05.06.58.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Feb 2014 06:58:23 -0800 (PST) Message-ID: <52F2518D.5010806@gmail.com> Date: Wed, 05 Feb 2014 14:58:21 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: "internals@lists.php.net" References: <1391603747.17454.13.camel@guybrush> <52F24BB7.7080802@gmail.com> <52F24E95.2080301@b1-systems.de> In-Reply-To: <52F24E95.2080301@b1-systems.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Singletons From: rowan.collins@gmail.com (Rowan Collins) 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]