On Mon, 13 May 2019 at 19:55, Steven Wade wrote:
> I'm personally unconvinced of the value of this, and would probably propose
> it was blocked by coding standards in my team if it was added, because its
> meaning is so ambiguous.
>
>
> That's perfectly reasonable. Do you also block use of castin
On Mon, 13 May 2019, 20:43 Steven Wade, wrote:
> I don't think any of the discussion points mentioned above is resolved
>
>
> I believe that most of the discussion points mentioned have been addressed
> and resolved. Regarding the concern that an array cast is the only
> operation capable of expo
> I'm personally unconvinced of the value of this, and would probably propose
> it was blocked by coding standards in my team if it was added, because its
> meaning is so ambiguous.
That's perfectly reasonable. Do you also block use of casting to a string with
(string) $foo as well? I ask because
> I don't think any of the discussion points mentioned above is resolved
I believe that most of the discussion points mentioned have been addressed and
resolved. Regarding the concern that an array cast is the only operation
capable of exposing object state, the same functionality can be achieve
Hi Steven,
On Mon, 13 May 2019, 15:46 Steven Wade, wrote:
> > On May 4, 2019, at 10:58 AM, Steven Wade wrote:
> >
> > Hi Internals team!
> >
> > I have an idea for a feature that I'd love to see in the language one
> day and wanted to run the idea by you all.
> >
> > The idea is to add a new ma
On Mon, 13 May 2019 at 14:46, Steven Wade wrote:
>
> Hi all, I wanted to re-ping the list to see if there is any more feedback
> on this proposal? Any technical concerns or true BC changes?
>
I'm personally unconvinced of the value of this, and would probably propose
it was blocked by coding st
> On May 4, 2019, at 10:58 AM, Steven Wade wrote:
>
> Hi Internals team!
>
> I have an idea for a feature that I'd love to see in the language one day and
> wanted to run the idea by you all.
>
> The idea is to add a new magic method "__toArray()" that would allow a
> developer to specifiy h
On 04/05/2019 15:58, Steven Wade wrote:
The idea is to add a new magic method "__toArray()" that would allow a
developer to specifiy how a class is cast to an array. The idea is the same mentality of
__toString(), but, for arrays.
I see possibilities for it, and on a slightly wider approach,