Re: DateTimeImmutable

From: Date: Wed, 27 Mar 2013 16:10:31 +0000
Subject: Re: DateTimeImmutable
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-66835@lists.php.net to get a copy of this message
On Wed, Mar 27, 2013 at 2:14 PM, Pierre Joye <pierre.php@gmail.com> wrote: > On Wed, Mar 27, 2013 at 1:49 PM, Andreas Heigl <andreas@heigl.org> wrote: > > Am 27.03.13 13:41, schrieb Jordi Boggiano: > >> On 27.03.2013 13:18, Lars Strojny wrote: > >>> Not really, as an interface guarantees behavior, which is not possible > for DateTimeImmutable and DateTime. > >> > >> The interface could be a subset of DateTime public methods, including > >> only the readonly ones. > >> > >> I can't imagine how this could possibly be named in a sane way though :/ > > > > DateTimeInterface or DateTimeROInterface? > > > I'd to re post Lars suggestion from another thread. Do a RFC. This is > going again in all possible directions and I fear that we will not get > a good solution at the end of the day. > > Cheers, > -- > Pierre > > @pierrejoye > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > agree, but the current implementation shouldn't be shipped until we find an acceptable solution. -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.internals (#66835) next »