Re: [PHP4BETA] Re: SESS: objects containing objects *final statement*(?)please read!
| From: | Chuck Hagenbuch | Date: | Sat, 26 Feb 2000 06:40:16 +0000 |
| Subject: | Re: [PHP4BETA] Re: SESS: objects containing objects *final statement*(?)please read! | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11027@lists.php.net to get a copy of this message | ||
> Zeev Suraski wrote:
> > I think the best approach would be to change the semantics of to_string()
> > to actually return a string, instead of printing it out, so that it could
> > be used for serialization.
It would be great to have to_string() return a string, but I'd ask that it
_not_ be used for serialization, as being able to easily print out human
readable representations of objects (and to change what you display in said
printout while debugging, without breaking anything else - like
serialization) can be a huge boon.
-chuck
--
Charles Hagenbuch, <chagenbu@wso.williams.edu>
--
Hockey means never having to say you're sorry.