Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64894 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57092 invoked from network); 12 Jan 2013 16:24:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2013 16:24:37 -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.215.49 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.215.49 mail-la0-f49.google.com Received: from [209.85.215.49] ([209.85.215.49:41205] helo=mail-la0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/E5-24230-44E81F05 for ; Sat, 12 Jan 2013 11:24:36 -0500 Received: by mail-la0-f49.google.com with SMTP id fk20so2620000lab.22 for ; Sat, 12 Jan 2013 08:24:33 -0800 (PST) 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=BDA/LC4LVvJ5VEksGvGbMv4Bh/IFD1hTnamfRpokAPU=; b=kdP1UqPx+6kR6EUJUDbiMqACOchDirMr81ZJ/jA3CzqinqZXVtRwvcxRnyekSBzu3C KmRHekutXPzKdxD/oJPq4UXL7fO8r57w4Bhsv6lHI2K5QPnVfj7jp4ikimyWG3Ke/wLN hXnv+FU3PzJ2yOXrbBUvBfGSwh0jZionWdD0YVMZpg3NylBBw5mAmsBB5MoA7cFXQmx6 GICpev5NX3kgtsqGU/0brLM7GKyUs3jgYk7+bIREgqM96p41gwmn+FxquJPOKOBfOfoE eqS/Jz+PiNJYf9Y353KZAnI1CxsGya2jFEjgowxdHBy5Vjbr106ifnzoA/8FlQ1Y0Wk5 P9kg== MIME-Version: 1.0 Received: by 10.152.147.103 with SMTP id tj7mr77483370lab.54.1358007873689; Sat, 12 Jan 2013 08:24:33 -0800 (PST) Received: by 10.112.4.168 with HTTP; Sat, 12 Jan 2013 08:24:33 -0800 (PST) In-Reply-To: References: <50F0FB3B.2090509@sugarcrm.com> Date: Sat, 12 Jan 2013 17:24:33 +0100 Message-ID: To: Derick Rethans Cc: Stas Malyshev , PHP internals Content-Type: multipart/alternative; boundary=e89a8f234d2be9d80204d319d85c Subject: Re: [PHP-DEV] [VOTE] array_column() function From: nikita.ppv@gmail.com (Nikita Popov) --e89a8f234d2be9d80204d319d85c Content-Type: text/plain; charset=ISO-8859-1 On Sat, Jan 12, 2013 at 4:54 PM, Derick Rethans wrote: > > I know that not everyone agrees with that philosophy, but I personally > > don't like to add new features that can be easily covered by more > > general solutions, or features that just represent a hack because the > > more general solution isn't implemented yet. > > By more general you mean extra special new OO constructs? Sorry, but PHP > should also be useable by non-CS majors. And so what we have 76 (soon > 77!) array functions? > List comprehensions are in no way related to OO. At least no way I know off. But in any case: I apologize for what I wrote in the first mail in the thread. It was not constructive to this discussion, because it only contained half of my reasoning and I only mentioned the more controversial part. What I should have said is this: I think that this is a very simple function that can be easily implemented in userland and I just don't see sufficient need or implementational advantages for it to be part of core (see also Anthony's response). The note on list comprehensions should only be relevant insofar that they would make this function even *less* useless in the future. Again, sorry for hijacking this thread. Nikita --e89a8f234d2be9d80204d319d85c--