Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64390 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56007 invoked from network); 20 Dec 2012 20:43:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2012 20:43:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.54 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.215.54 mail-la0-f54.google.com Received: from [209.85.215.54] ([209.85.215.54:45910] helo=mail-la0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/FB-20281-37873D05 for ; Thu, 20 Dec 2012 15:43:32 -0500 Received: by mail-la0-f54.google.com with SMTP id j13so3699995lah.41 for ; Thu, 20 Dec 2012 12:43:29 -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=H1hC0TV9bcFqlKN9sAMXZMQs3pTpezzhFXX2jZTjFwg=; b=o0XKQSUrgQHe7ccW/0f+NQkfBUpcSLptJf13fjIgnnvoKDzxvtrJh8U15vWDdZ4lz3 Okxl2n6iXKmZmYEtW9c6QP8KaSDwMpWlHY5RhOtBu1R7yO/uSG6XYWUkatKY54ZX5DIT 3u4aiRIOFKb8qlREniQKw46DQBRxIez/gsngFapyqyyCmZqk29dHhRns0UIb/dnZJS3q +3vczr2eZvOIR9XTz/SyNTzqzSd8uNMpjEAxZDRIB3RJAp7oXPq2iO86ZleQhHM2W+g+ YoSobJs6ks9tlNTkSXBKx4itIlAcun2kFHr+YImYjJKjEJsFiVvZIqTERrwI49Kaz5wt 0gqQ== MIME-Version: 1.0 Received: by 10.152.108.37 with SMTP id hh5mr10108838lab.52.1356036209232; Thu, 20 Dec 2012 12:43:29 -0800 (PST) Received: by 10.112.40.102 with HTTP; Thu, 20 Dec 2012 12:43:28 -0800 (PST) In-Reply-To: <50D0BBBC.5050000@suumit.com> References: <50D08108.1020503@suumit.com> <50D0B162.90006@gmail.com> <50D0B953.8010001@suumit.com> <50D0BBBC.5050000@suumit.com> Date: Thu, 20 Dec 2012 13:43:28 -0700 Message-ID: To: victor@suumit.com Cc: Anthony Ferrara , =?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?= , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] How about implementing more data structures (ie Map, Set) From: morrison.levi@gmail.com (Levi Morrison) As mentioned earlier, I've been working on a library(https://github.com/morrisonlevi/Ardent) with an honest effort to make the data-structures usable in several different programming styles. I've tried several designs, but requiring something to implement a `Comparable` interface turned out to not be a very good way to do things, for several reasons I don't feel like going into at the moment. ----- I hope you'll take a look at the current Map(https://github.com/morrisonlevi/Ardent/blob/master/src/Ardent/Map.php) and Set(https://github.com/morrisonlevi/Ardent/blob/master/src/Ardent/Set.php) interfaces in my library and see if there is anything you are missing. I'd really love it if you cloned the repository and tried using it in your project. I'm always looking for feedback.