Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34125 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9544 invoked by uid 1010); 20 Dec 2007 10:21:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9529 invoked from network); 20 Dec 2007 10:21:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2007 10:21:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.178.244 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 64.233.178.244 hs-out-0708.google.com Linux 2.4/2.6 Received: from [64.233.178.244] ([64.233.178.244:52987] helo=hs-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/2C-15872-2224A674 for ; Thu, 20 Dec 2007 05:21:23 -0500 Received: by hs-out-2122.google.com with SMTP id l65so3346389hsc.7 for ; Thu, 20 Dec 2007 02:21:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=w4a5ie9i7EWi+DZPvS4nznydaA0eceBEK+1f3z+xxqw=; b=S6EnCShruf1GlAq+ew9p3BFdrVffM+s2vkqUDJsbh3BdyOml8evZ9Wi+XXpBRYDKKfCHxfrB2j6JRWCu03LbX6O9CtCSLKC5JE/5vWtJ//SZ+F564L63bX4rr4EfPmyOXyuqUE+O7DFK7pe4nmMCr5zRRy89RMNc9PXpQk2TZGA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JyiDLweXmr4VILjuk0S2X/mmuTUHKhmBn3qhQKue/3RLjNEi3EB73wBhP7SfpWuXjmapnHJX+qRmK1f/QyWXGefrG4XQr+YOBYxU2ieXin3xqSU4hpEXxbI6FnD0S6+OfyXZrUNSlW2uqGl8VXEokPAyLFwZOGNkCcLeW3kTL2c= Received: by 10.150.211.19 with SMTP id j19mr3049654ybg.61.1198146080432; Thu, 20 Dec 2007 02:21:20 -0800 (PST) Received: by 10.150.52.9 with HTTP; Thu, 20 Dec 2007 02:21:20 -0800 (PST) Message-ID: Date: Thu, 20 Dec 2007 13:21:20 +0300 To: "Antony Dovgal" Cc: internals@lists.php.net In-Reply-To: <476A3C72.6030908@daylessday.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <98b8086f0712150818n40056cedyf0aae7a5a08a27b7@mail.gmail.com> <47699960.1090101@zend.com> <98b8086f0712191528n2fd348d0oe3da9eed20d87194@mail.gmail.com> <4769ACF5.7000701@zend.com> <476A208D.9020201@daylessday.org> <476A33BD.1050508@daylessday.org> <476A3C72.6030908@daylessday.org> Subject: Re: [PHP-DEV] Re: PATCH: anonymous functions in PHP From: indeyets@gmail.com ("Alexey Zakhlestin") On 12/20/07, Antony Dovgal wrote: > On 20.12.2007 12:41, Alexey Zakhlestin wrote: > > it doesn't make sense to put some of these functions in libraries, > > because they are really once-used. > > It makes perfect sense to keep all your functions in one place instead of > spreading them all over the code. > And no, this kind of "optimization" doesn't make your code run any faster. if this was a comment to inline-optimization I mentioned, then it actually would make my code run faster (I use PHP for quite unusual tasks) > >> So here is what we _actually_ get with this anonymous function syntax: > >> 1) Yet another way to make the code unreadable and overcomplicated. > > it is not unreadable. it is perfectly readable for people with > > modern-languages background (and I don't mean 1 or 2 languages, I mean > > majority) > > A new syntax that conflicts with currently existing one (or looks very similar to) > doesn't make code more readable, it adds more confusion instead. should we change "function" word on "lambda" word there to make confusion smaller? > >> 3) 10 people happy because they got a new toy. > > "thousands" is a closer number > > Does this mean you do admit that this is just a new toy? (pretty useless, but funny) =) I admit, that I do programming, because it is fun If it is not fun, I get bored and switch to other task this functionality would make programming of some tasks more fun and, as result, will lead to greater productivity -- Alexey Zakhlestin http://blog.milkfarmsoft.com/