Re: Proposal: ArraySerializable interface

From: Date: Mon, 16 Dec 2013 07:18:56 +0000
Subject: Re: Proposal: ArraySerializable interface
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-70649@lists.php.net to get a copy of this message
2013/12/13 Marco Pivetta <ocramius@gmail.com>:
> I'd rather prefer having userland implementations as I mentioned before
> (since it's possible). Casting to (array) actually solves more complex
> problems, while solving the problem of extracting data is fairly simple

Thanks, I understand your use case. Surely, casting to (array) is
faster than ReflectionProperty.
I just came up with adding ObjectHydrator extension is also
interesting solution on your case.


Okay, I'll stop this propose at this time. As there is similar rfc and
that status is in draft: https://wiki.php.net/rfc/object_cast_to_types
I'm sorry about my poor research.

Thanks for the feedbacks.
Shuhei


Thread (10 messages)

« previous php.internals (#70649) next »