Re: [PHP-DEV] Features related to Object Initializers

2019-09-17 Thread Larry Garfield
On Mon, Sep 16, 2019, at 7:10 PM, Mike Schinkel wrote: > > On Sep 16, 2019, at 6:20 PM, Larry Garfield wrote: > > > > I think everyone's in agreement about: > > > > 1) Making objects easier to work with. > > 2) Devs should use objects more. > > I am glad we are reaching some common ground. :-)

Re: [PHP-DEV] Features related to Object Initializers

2019-09-17 Thread Andreas Hennings
On Tue, 17 Sep 2019 at 00:21, Larry Garfield wrote: > [..] > I think everyone's in agreement about: > > 1) Making objects easier to work with. > 2) Devs should use objects more. > > (Side note: I have an article submitted to php[architect] entitled "Never* > use arrays" that goes into this topic

Re: [PHP-DEV] Features related to Object Initializers

2019-09-17 Thread Rowan Tommins
On Tue, 17 Sep 2019 at 01:10, Mike Schinkel wrote: > But as I said before, naming is hard — except for abstract examples where > you can just name it "Something" :-) — and developers often don't know what > object schema they will need until they have written much of the code. So > the ability to

Re: [PHP-DEV] Features related to Object Initializers

2019-09-16 Thread Mike Schinkel
> On Sep 16, 2019, at 6:20 PM, Larry Garfield wrote: > > I think everyone's in agreement about: > > 1) Making objects easier to work with. > 2) Devs should use objects more. I am glad we are reaching some common ground. :-) > (Side note: I have an article submitted to php[architect] entitled "

Re: [PHP-DEV] Features related to Object Initializers

2019-09-16 Thread Larry Garfield
On Mon, Sep 16, 2019, at 2:28 PM, Mike Schinkel wrote: > I had to snip context and split in two to get under the 30k char limit. > > > On Sep 16, 2019, at 6:22 AM, Rowan Tommins > > wrote: > > > > Points 1 and 3 are solved by anonymous classes, which we already h

Re: [PHP-DEV] Features related to Object Initializers

2019-09-16 Thread Mike Schinkel
2 of 2 > On Sep 16, 2019, at 6:22 AM, Rowan Tommins wrote: > > I don't particularly see them as a "group". If I write foo($a, 42), I don't > think of $a and 42 being bound together in any way; each is passed as a > value to one variable in the function. So that's my answer to "why not"; > they

Re: [PHP-DEV] Features related to Object Initializers

2019-09-16 Thread Mike Schinkel
I had to snip context and split in two to get under the 30k char limit. > On Sep 16, 2019, at 6:22 AM, Rowan Tommins > wrote: > > Points 1 and 3 are solved by anonymous classes, which we already have. > Point 2 is a bit vague; is your point essentially "if we had

[PHP-DEV] Features related to Object Initializers

2019-09-15 Thread Mike Schinkel
> On Sep 14, 2019, at 4:47 PM, Rowan Tommins wrote: > I think that's only true because you've actually proposed a number of related > but different features. See my other email to the list asking about what is in-bounds and what it out-of-bounds regarding RFC discussion. I seemed logical to