Re: [PHP-DEV] Introspection for references

2018-07-10 Thread Nikita Popov
On Tue, Jul 10, 2018 at 12:15 PM, Nicolas Grekas < nicolas.grekas+...@gmail.com> wrote: > If we're seeking for a benefit, it would be by turning this to a >>> ReflectionZval insteaf of ReflectionReference. There would be isRef, but >>> also getType, etc. But honeslty I'm with you on this, only ref

Re: [PHP-DEV] Introspection for references

2018-07-10 Thread Nicolas Grekas
> > If we're seeking for a benefit, it would be by turning this to a >> ReflectionZval insteaf of ReflectionReference. There would be isRef, but >> also getType, etc. But honeslty I'm with you on this, only refs make sense. >> > > I'm wondering if there is any legitimate use for something like this

Re: [PHP-DEV] Introspection for references

2018-07-09 Thread Nikita Popov
On Sun, Jul 8, 2018 at 8:36 PM, Nicolas Grekas wrote: > > Before talking about solutions, can the people who need this first outline what functionality is needed and what it is needed for (and maybe what workarounds you currently use). E.g. do you only need to know whether somethin

Re: [PHP-DEV] Introspection for references

2018-07-08 Thread Nicolas Grekas
> Before talking about solutions, can the people who need this first outline >>> what functionality is needed and what it is needed for (and maybe what >>> workarounds you currently use). E.g. do you only need to know whether >>> something is a reference, or do you need to know whether two somethin

Re: [PHP-DEV] Introspection for references

2018-07-08 Thread Nikita Popov
On Sun, Jul 8, 2018 at 10:42 AM, Nicolas Grekas < nicolas.grekas+...@gmail.com> wrote: > Hi Nikita, > > > Before talking about solutions, can the people who need this first outline >> what functionality is needed and what it is needed for (and maybe what >> workarounds you currently use). E.g. do

Re: [PHP-DEV] Introspection for references

2018-07-08 Thread Nicolas Grekas
Hi Nikita, Before talking about solutions, can the people who need this first outline > what functionality is needed and what it is needed for (and maybe what > workarounds you currently use). E.g. do you only need to know whether > something is a reference, or do you need to know whether two som

[PHP-DEV] Introspection for references

2018-07-07 Thread Nikita Popov
Hi, This was brought up in the thread for the typed properties RFC, but I'd like to split off this discussion. Before talking about solutions, can the people who need this first outline what functionality is needed and what it is needed for (and maybe what workarounds you currently use). E.g. do