Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41634 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27244 invoked from network); 4 Nov 2008 09:39:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Nov 2008 09:39:54 -0000 Authentication-Results: pb1.pair.com header.from=troelskn@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=troelskn@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.92.25 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: troelskn@gmail.com X-Host-Fingerprint: 74.125.92.25 qw-out-2122.google.com Received: from [74.125.92.25] ([74.125.92.25:60481] helo=qw-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/83-25267-A6810194 for ; Tue, 04 Nov 2008 04:39:54 -0500 Received: by qw-out-2122.google.com with SMTP id 8so1185142qwh.59 for ; Tue, 04 Nov 2008 01:39:51 -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=DSw+rYM3mGKOUNg64t3yAE/3FP/KnO0y6LRktPJAThU=; b=BSv+YPelbRp934AQNuaX6iphf7nxfRdQo1B+SRUjxAcf+g2LLw150dn8JUyBR1qgsq qoTdEI1eRZUiakRarUhtKwGYFQmTXNppHnpuAY2dp1JJNlOkhvzZGupkmBeAA4dYwvyt VfyOtReWir9nD/rqDAGLgrPunkheHWWrPskMg= 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=VR1Bo5kTXBkuytbVXANKoKU4BmwL9TJ9HjN7MgwZzkBXmXHR2oqT7eNMjSidjhyNCL 4/1XBcMdoDu5UWM+MLLawzuj7DHjYqFsiK9dgVCQqBWGMDVRP8y2TI3sRF4foN5recpe 24ZcunZwkn2UknuNj8n/6lisuHppw2XcDrrJ4= Received: by 10.215.40.16 with SMTP id s16mr1451714qaj.215.1225791591860; Tue, 04 Nov 2008 01:39:51 -0800 (PST) Received: by 10.214.78.21 with HTTP; Tue, 4 Nov 2008 01:39:51 -0800 (PST) Message-ID: <98b8086f0811040139v629688fcyaef2be18fe413212@mail.gmail.com> Date: Tue, 4 Nov 2008 10:39:51 +0100 To: "Ionut Gabriel Stan" Cc: "Marcus Boerger" , "PHP Internals" In-Reply-To: <491011AC.8030609@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <490F13A2.1020809@gmail.com> <154582775.20081103164129@marcus-boerger.de> <491011AC.8030609@gmail.com> Subject: Re: [PHP-DEV] [RFC] Iteration tools From: troelskn@gmail.com ("troels knak-nielsen") On Tue, Nov 4, 2008 at 10:11 AM, Ionut Gabriel Stan wrote: > Anyway, I see there's nobody else that would like this but it's ok, at least > now we have namespaces so that > I don't have to come up with ugly names like my_map() for these kind of > helper functions. I like the proposal. With the advent of first-class functions, functional-style iteration is becoming possible. An abstraction that hides away the difference between arrays and traversables would help further in this direction. And this is something that is much better implemented in the language, than in userland, to ensure interoperability. -- troels