Re: [PHP-DEV] Re: [RFC] [VOTE] Typed properties v2

2019-01-12 Thread Albert Casademont
Thank you all! Is the Perfomance section of the RFC updated? https://wiki.php.net/rfc/typed_properties_v2#performance would be great to know now that the patch is final and merged On Fri, Jan 11, 2019 at 5:45 PM Marco Pivetta wrote: > Hi Nikita, > > On Fri, Jan 11, 2019 at 5:38 PM Nikita Popov

[PHP-DEV] Making stdClass iterable

2019-01-12 Thread Craig Duncan
Hi everybody I'd like to propose a change to stdClass so that it can satisfy the iterable parameter/return type. Firstly I acknowledge that this isn't an ideal solution, but I think it gets us to a better state than we're in today. It shouldn't be necessary, but while we have such a common functi

Re: [PHP-DEV] Making stdClass iterable

2019-01-12 Thread Dan Ackroyd
Hi Duncan, I quite strongly dislike the idea, as it sounds like this solution is a hack for a particular use case, and that use case doesn't seem to be particularly important to me. I say it's not particularly important to me, as you could solve it right now by: i) asking json_decode to return a

Re: [PHP-DEV] Making stdClass iterable

2019-01-12 Thread Markus Fischer
On 12.01.19 21:13, Dan Ackroyd wrote: Hi Duncan, [...] great points I was about to reply to Craig when Dans' email hit the list. I couldn't agree with Dan more. The expanded use of stdClass feels wrong to me, as in: wrong solution to a problem best solved differently. Dan gave ample exampl