Hi Stas,

2013/7/24 Stas Malyshev <smalys...@sugarcrm.com>

> > This patch good for extending PHP usability. IMHO.
> > Modern popular languages like Ruby and Javascript has way to
> extend/modify
> > existing object/method behaviors.
>
> PHP has it too, it is called runkit. However it makes reasoning about
> the code much harder, so I do not think it is worth it to make it part
> of standard PHP language. However, I do not see how this is related at
> all to the RFC being discussed.


RunKit is nice, but it's not a standard module and I suppose it will
not be standard.

This might be a poor example of usefulness of overriding existing
class/method, but proposed feature may be used for monkey patch
for instance.

http://en.wikipedia.org/wiki/Monkey_patch

There are issues as discussed in Wiki. So not having such
feature is valid option, but it's nice to have feature. Make strlen()
return number of chars instead of bytes, etc.

I don't have concrete idea right now. If there is cleaver way that
avoids disadvantages, I would like to see such feature by default
since almost all PHP competitors have this.

Any ideas that satisfy most of us?

Regards,

--
Yasuo Ohgaki
yohg...@ohgaki.net

Reply via email to