On Dec 1, 2003, at 11:52 AM, Marcus Boerger wrote:


Hello Stanislav,

Monday, December 1, 2003, 5:05:14 PM, you wrote:

DR>>> To make it simple to use? I agree with Adam here, with the new

It may make one particular case of use simple. It would make understanding
even this case complicated, and will complicate a lot of other cases of
which we didn't think now.

If you don't understand XML then it is harder to understand. If you do then
you are now basically forced to do fucking code like DOM - thanks - no more
simple.

One possible solution is to just fix simplexml. If you have a node that has no descendants, cast it as a string (or better yet, add Schema parsing and recast it as the correct PHP type.).


That aside, I agree with Adam, Derick and Marcus that as is the __toString method has high WTF factor and low usability.

George

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to