Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65930 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23556 invoked from network); 19 Feb 2013 12:01:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Feb 2013 12:01:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:56977] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/70-17768-19963215 for ; Tue, 19 Feb 2013 07:01:21 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id BD84CDE13D; Tue, 19 Feb 2013 12:01:18 +0000 (GMT) Date: Tue, 19 Feb 2013 12:01:18 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Sanford Whiteman cc: Nikita Popov In-Reply-To: <1867201214.20130215192512@cypressintegrated.com> Message-ID: References: <1867201214.20130215192512@cypressintegrated.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Questions regarding DateTimeImmutable From: derick@php.net (Derick Rethans) On Fri, 15 Feb 2013, Sanford Whiteman wrote: > I think it was done to ease adoption even though it was known to > violate LSP. To quote Stas, "As for established practice, everybody > expects DateTime, so IMHO we should leave DateTime as base class even > though it's not strictly OO-pure." > > This way does let users sub in DateTimeImmutable more easily and patch > over a ton of unintended -- maybe not even fully noted or understood > -- defects in their apps? I dunno. Yes, that's exactly the idea. cheers, Derick