Re: [PHP-DEV] Re: Alias for `int|float`

2022-10-03 Thread Olle Härstedt
2022-10-03 19:56 GMT+02:00, juan carlos morales : > Very interesting > > But I think that the original suggestion had a slimer scope than the > rest of the opinions, that is why I also agree that the "scope" should > be defined clearly, and provide the examples needed to clarify the > suggestion it

Re: [PHP-DEV] Re: Alias for `int|float`

2022-10-03 Thread juan carlos morales
Very interesting But I think that the original suggestion had a slimer scope than the rest of the opinions, that is why I also agree that the "scope" should be defined clearly, and provide the examples needed to clarify the suggestion itself. Cheers -- PHP Internals - PHP Runtime Development Ma

Re: [PHP-DEV] Re: Alias for `int|float`

2022-09-30 Thread Hamza Ahmad
After reading through all of the suggestions above, I have come to this conclusion that all suggestion can be incorporated in the following ways: Types can exist in name spaces, Either in the global namespace or in the user defined name spaces. If one wants to import a type from a name space, it ca

Re: [PHP-DEV] Re: Alias for `int|float`

2022-09-30 Thread Olle Härstedt
2022-09-30 17:16 GMT+02:00, Larry Garfield : > On Fri, Sep 30, 2022, at 4:04 AM, Olle Härstedt wrote: >> 2022-09-29 5:08 GMT+02:00, Hamza Ahmad : >>> Hi Olle, >>> >>> I appreciate your idea of introducing a similar concept of typedef. >>> What if you write an RFC explaining that concept. I can join

Re: [PHP-DEV] Re: Alias for `int|float`

2022-09-30 Thread Larry Garfield
On Fri, Sep 30, 2022, at 4:04 AM, Olle Härstedt wrote: > 2022-09-29 5:08 GMT+02:00, Hamza Ahmad : >> Hi Olle, >> >> I appreciate your idea of introducing a similar concept of typedef. >> What if you write an RFC explaining that concept. I can join you >> however in co-authoring this request. >> >>

Re: [PHP-DEV] Re: Alias for `int|float`

2022-09-30 Thread Olle Härstedt
2022-09-30 12:15 GMT+02:00, Lynn : > On Fri, Sep 30, 2022 at 11:04 AM Olle Härstedt > wrote: > >> 2022-09-29 5:08 GMT+02:00, Hamza Ahmad : >> > Hi Olle, >> > >> > I appreciate your idea of introducing a similar concept of typedef. >> > What if you write an RFC explaining that concept. I can join y

Re: [PHP-DEV] Re: Alias for `int|float`

2022-09-30 Thread Lynn
On Fri, Sep 30, 2022 at 11:04 AM Olle Härstedt wrote: > 2022-09-29 5:08 GMT+02:00, Hamza Ahmad : > > Hi Olle, > > > > I appreciate your idea of introducing a similar concept of typedef. > > What if you write an RFC explaining that concept. I can join you > > however in co-authoring this request.

Re: [PHP-DEV] Re: Alias for `int|float`

2022-09-30 Thread Olle Härstedt
2022-09-29 5:08 GMT+02:00, Hamza Ahmad : > Hi Olle, > > I appreciate your idea of introducing a similar concept of typedef. > What if you write an RFC explaining that concept. I can join you > however in co-authoring this request. > > Seriously, I have had issues with writing such type again and ag

Re: [PHP-DEV] Re: Alias for `int|float`

2022-09-30 Thread Hamza Ahmad
Sadly, I am disappointed with the way this suggestion has been looked down on. On 9/29/22, Olle Härstedt wrote: > 2022-09-29 12:33 GMT+02:00, Ryan Jentzsch : >> `number` type But frankly this seems a bit silly and reminds me too much >> of >> JavaScript. > > That's just an example. You can also c

Re: [PHP-DEV] Re: Alias for `int|float`

2022-09-29 Thread Olle Härstedt
2022-09-29 12:33 GMT+02:00, Ryan Jentzsch : > `number` type But frankly this seems a bit silly and reminds me too much of > JavaScript. That's just an example. You can also consider `use array|ArrayAccess as arraylike`, or such. Olle -- PHP Internals - PHP Runtime Development Mailing List To un

Re: [PHP-DEV] Re: Alias for `int|float`

2022-09-29 Thread Ryan Jentzsch
`number` type But frankly this seems a bit silly and reminds me too much of JavaScript. On Wed, Sep 28, 2022, 9:08 PM Hamza Ahmad wrote: > Hi Olle, > > I appreciate your idea of introducing a similar concept of typedef. > What if you write an RFC explaining that concept. I can join you > however

Re: [PHP-DEV] Re: Alias for `int|float`

2022-09-28 Thread Hamza Ahmad
Hi Olle, I appreciate your idea of introducing a similar concept of typedef. What if you write an RFC explaining that concept. I can join you however in co-authoring this request. Seriously, I have had issues with writing such type again and again. If you look at mixed type, it is indeed an alias