Re: [RFC DISCUSSION] typeof
| From: | Stanislav Malyshev | Date: | Sat, 04 Jun 2016 20:32:45 +0000 |
| Subject: | Re: [RFC DISCUSSION] typeof | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93782@lists.php.net to get a copy of this message | ||
Hi!
> I prepared my first contribution to internals:
>
> https://github.com/php/php-src/pull/1932
I don't think we need a core function that almost exactly duplicates the
working of existing function but with a slight tweak. I do not think it
is a good idea to do such things, it only produces more confusion. I
mean yes, NULL may be annoying (not to me but I understand how it can
be) but introducing new core function to change "NULL" to "null" and
similar small tweaks and encourage people (99.99999% of which do not
care) to rewrite their code does not seem beneficial to me.
The extended mode seems to be a kind of pretty-printing debugging output
which probably matches some use case but definitely not all of them. I
don't see how these cases are common enough to be part of core. This
would be completely fine as a PHP library but I don't see why it needs
to be a core function.
--
Stas Malyshev
smalyshev@gmail.com