Hi! > It is foolish to think that these two bits of code are behaviorally different: > > class Entity { > DateTime $last_modified; > }
The are different because this one looks like a strongly typed variable which brings with it a lot of connotations which aren't immediately obvious, and in fact most of this is not needed. 99% of use of parameter typing I've seen is done for purely documentation purposes and that code would break hard if these types do not match but in the code they never do since there are no other types that end up there. I think having the engine run a lot of extra code just for the sake of documentation is not right. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php