Re: DateTime improvement

From: Date: Tue, 11 Dec 2012 17:15:15 +0000
Subject: Re: DateTime improvement
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi!

> @Stas a DateTime object is the perfect representation of what in DB
> world has dozens of different representations. The reasoning behind it
> is exactly the same as having a DateTime object vs having a date+time
> string.

You are confusing internal PHP representation with object identity vs.
value treatment. There's no reason for dates to be treated as non-value
types having complex structure, and if you do not, mutability is not a
question.
-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227


Thread (34 messages)

« previous php.internals (#64262) next »