> > Would the args still be available in the stringified version? Because >> they're quite useful for debugging there. >> > > Hm, I guess we'd need to store the string representation (the class name, > basically) somewhere so we could keep that. Doesn't seem like it ought to > be too hard, unless there's some hidden complexity or performance impact > there.
Not sure whether there will be a noticeable performance impact. Formatting doesn't have to take place on collection, but a replacement of object references to some representation that can later be formatted. A refcount increase can be saved, but that's probably totally trivial performance wise. Related issue for ReactPHP's promises: https://github.com/reactphp/promise/issues/46#issuecomment-326739299 Regards, Niklas