Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69673 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29677 invoked from network); 18 Oct 2013 12:19:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2013 12:19:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.179 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.220.179 mail-vc0-f179.google.com Received: from [209.85.220.179] ([209.85.220.179:35636] helo=mail-vc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/11-23638-B5721625 for ; Fri, 18 Oct 2013 08:19:40 -0400 Received: by mail-vc0-f179.google.com with SMTP id hz11so302979vcb.24 for ; Fri, 18 Oct 2013 05:19:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=I5o2S6aeCQKdyVb+wdu0UWsyb3pGd67JrcMVO0Y12O4=; b=vW9A0foEtXJ4J66RvtklK0Uy7I3WlUQD6py7AbOn4wRlnLCJNULr6WDCcfaAD9+6CZ m4YQ7Mh3nLl6GxNZ9WhuWvWPupBFzQ1fOK+RgCL21JEys5rXuDVB4Pjjq99hVwzY2cS+ OnchMGeQuXBtVwuRosrgsndXiVEDzv+uvCDX7RSpaBeeZ3OutQB4cAU6yQKl3MsyAoQM r2Xa7GxJdEwm9A6vzyY0cS0aZmU8KWHI1Wll2iQ5vWwdpGUaw/Kxs1u882qavckfMQMO 5fJ6NvGmavNYEmWTMcRwhnxf9j+MpBDRseztYHZeJbZhovv0mfABbavj1zIxJbIfKcnH zVyg== MIME-Version: 1.0 X-Received: by 10.52.173.165 with SMTP id bl5mr1595511vdc.18.1382098777446; Fri, 18 Oct 2013 05:19:37 -0700 (PDT) Received: by 10.220.59.1 with HTTP; Fri, 18 Oct 2013 05:19:37 -0700 (PDT) In-Reply-To: <52610FFE.7020806@googlemail.com> References: <525C631E.1050008@gmail.com> <52610FFE.7020806@googlemail.com> Date: Fri, 18 Oct 2013 14:19:37 +0200 Message-ID: To: Crypto Compress Cc: PHP internals Content-Type: multipart/alternative; boundary=bcaec51b9cfdaca02d04e902f29a Subject: Re: [PHP-DEV] Proposal to deprecate create_function() From: nikita.ppv@gmail.com (Nikita Popov) --bcaec51b9cfdaca02d04e902f29a Content-Type: text/plain; charset=ISO-8859-1 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 > > -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 --bcaec51b9cfdaca02d04e902f29a--