Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84148 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40589 invoked from network); 2 Mar 2015 07:43:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2015 07:43:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=thomas@gielfeldt.dk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=thomas@gielfeldt.dk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain gielfeldt.dk from 209.85.215.45 cause and error) X-PHP-List-Original-Sender: thomas@gielfeldt.dk X-Host-Fingerprint: 209.85.215.45 mail-la0-f45.google.com Received: from [209.85.215.45] ([209.85.215.45:46982] helo=mail-la0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/B2-25952-9A414F45 for ; Mon, 02 Mar 2015 02:43:38 -0500 Received: by lams18 with SMTP id s18so28474875lam.13 for ; Sun, 01 Mar 2015 23:43:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=fHM3r64Nd3ehp6g8dOGtnf2Kdn2GqgGcuhA8i6TXC3w=; b=CUfwN+wa6qStH0y5suMJ24ZJEiUCWGVrOSMkO3jb7pelpLoYVa+IwCPrpNyeASMk7u rHfk9O2UrIiI9E1FXKNPemgB1KxQDmgirquP6LSuZsrB9Il2SsSRKPGUwkRsFMMvm+NN hMqHlGBX4XVSnHDJyOoZ6JW+XLDBZap9loKVILPQiNOuD/nVAb+JM8h12ltskn/9DS5d Mr6sLB9PUMKG/nOYk2+0ikQxuk4l7nJrWMT8ZO6PTmYWCdJ24AHYwVbKfu+SMzUXYbES vbdHN3ONOq2xxOnW/sICv4qrychXCJs5b1sfffQpCugPhjozSQSEYxkwEGzkRzutjVBT FBQQ== X-Gm-Message-State: ALoCoQnsjAhMmdFa4ub9Ib+m/xSlZNVXV/N+W5+8k9jcE1bqjoL9MxGLBhF4kIYa8RZJptWKqqC9 X-Received: by 10.112.140.74 with SMTP id re10mr23306545lbb.80.1425282213821; Sun, 01 Mar 2015 23:43:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.144.194 with HTTP; Sun, 1 Mar 2015 23:43:13 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Mar 2015 08:43:13 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=001a11c341e00f59ea0510496081 Subject: Re: Feature request and RFC From: thomas@gielfeldt.dk (Thomas Gielfeldt) --001a11c341e00f59ea0510496081 Content-Type: text/plain; charset=UTF-8 2015-02-24 17:17 GMT+01:00 Thomas Gielfeldt : > Hi internals. > > I've made PR proposing a feature request: A new interface Sortable. > > https://github.com/php/php-src/pull/1116 > > If possible, I would like to create and RFC describing this in more > detail, and perhaps get a voting on. > > Thanks > > Br, > > Thomas Gielfeldt > > The 2nd PR I made addresses this (https://github.com/php/php-src/pull/1123), exposing 3 much simpler interfaces depending on what the user wants/needs to implement, which combined covers all the 11 sort functions. Also, the point of this/these interface(s) is to provide the same power that some of the other SPL interfaces have (Countable, Serializable, ArrayAccess, Iterator, etc.). That is, using native functions with objects possessing certain capabilities. --001a11c341e00f59ea0510496081--