Re: Proposal to deprecate create_function()
| From: | Nikita Popov | Date: | Fri, 18 Oct 2013 12:19:37 +0000 |
| Subject: | Re: Proposal to deprecate create_function() | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69673@lists.php.net to get a copy of this message | ||
On Fri, Oct 18, 2013 at 12:39 PM, Crypto Compress <
cryptocompress@googlemail.com> wrote:
> Hello,
>
> shure all things can be replaced with more and verbose code. What is the
> benefit of writing all this lines in contrast to one method call?
> https://github.com/phpcr/**phpcr-utils/blob/master/src/**
>
> PHPCR/Util/Console/Helper/**PhpcrCliHelper.php#L111<https://github.com/phpcr/phpcr-utils/blob/master/src/PHPCR/Util/Console/Helper/PhpcrCliHelper.php#L111>
>
> -1 for removing wrappers/abbreviations/and such
> +1 for bugfixing
>
> Best,
> CC
>
Could you maybe elaborate a bit on your use case there? I.e. provide some
context as to why the create_function call there is necessary and why it
can't be replaced with use of anonymous functions (and maybe also what
additional constraints there are). For people like myself that are not
familiar with the exact workings of that library.
Thanks,
Nikita