Re: [PHP-DEV] Is there any interest for object constructor shorthand*just for stdClass*

2020-10-22 Thread Hans Henrik Bergan
@Rowan Tommins not saying this is a good idea or anything, but i just want to point out that there's another way to do it in 7.4 $object = new class($foo, $foo * 2, $nextBaz) { public int $foo; public int $bar; public int $baz; public function __construct($foo, $bar, $baz) {

Re: [PHP-DEV] Is there any interest for object constructor shorthand*just for stdClass*

2020-10-22 Thread Björn Larsson
Den 2020-10-21 kl. 22:45, skrev Rowan Tommins: On 21/10/2020 10:47, Pierre wrote: I'd recommend that if your data is arbitrary, you can use arrays, if you it's not, you probably always should write typed value objects This is pretty much what I was going to say. If you have truly dynamic ke

Re: [PHP-DEV] Hello

2020-10-22 Thread G. P. B.
On Thu, 22 Oct 2020 at 10:11, Andreas Bittner wrote: > Hello everyone > > I've been a reader of internals for some years and would like to join > the round. > > Unfortunately I have no experience implementing changes to the PHP > source itself. I hope to find the time to work my way into php-src

[PHP-DEV] Hello

2020-10-22 Thread Andreas Bittner
Hello everyone I've been a reader of internals for some years and would like to join the round. Unfortunately I have no experience implementing changes to the PHP source itself. I hope to find the time to work my way into php-src and hopefully contribute some RFCs and PRs in the future. Is