Re: DateTime improvement

From: Date: Sun, 16 Dec 2012 19:26:06 +0000
Subject: Re: DateTime improvement
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
I have actually started too, but I made it w/o inheritance from DateTime, and I made many of inline functions to avoid code repetition, so I don't know how good is it. The code on my work computer, so I can show it tomorrow.

Derick Rethans <[email protected]> писал(а) в своём письме Sun, 16 Dec 2012 16:21:47 +0400:

On Tue, 11 Dec 2012, Derick Rethans wrote:
On Mon, 10 Dec 2012, Herman Radtke wrote:
Another option is to make an ImmutableDateTime class. The DateTime class could actually be changed to inherit the ImmutableDateTime class. The only extensions on the DateTime class would be the mutable methods.
I'm not really against that, but we do need to use the Date namespace - so DateTimeImmutable. It might be trickier to do than it sounds though...
I've started hacking on this - with some luck I'm done before PHP 5.5 beta1. cheers, Derick


Thread (34 messages)

« previous php.internals (#64303) next »