Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23898 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34478 invoked by uid 1010); 4 Jun 2006 01:01:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 34463 invoked from network); 4 Jun 2006 01:01:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2006 01:01:06 -0000 X-Host-Fingerprint: 217.79.190.163 r163.red.fastwebserver.de Received: from ([217.79.190.163:16031] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AD/54-49656-1D032844 for ; Sat, 03 Jun 2006 21:01:05 -0400 To: internals@lists.php.net,andi@zend.com (Andi Gutmans) Date: Sun, 4 Jun 2006 03:01:00 +0200 Message-ID: <20060604030100.1093d2f9@pierre-u64> In-Reply-To: <7.0.1.0.2.20060603175211.02208a50@zend.com> References: <795156743.20060603134212@marcus-boerger.de> <20060603143639.GF5355@desario.homelinux.net> <509342741.20060603183859@marcus-boerger.de> <7.0.1.0.2.20060603175211.02208a50@zend.com> Reply-To: pierre.php@gmail.com X-Newsreader: Sylpheed-Claws 2.1.1 (GTK+ 2.8.17; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Posted-By: 217.79.190.163 Subject: Re: [PHP-DEV] Missing __toString() part From: pierre.php@gmail.com (Pierre) Hi, On 6/4/06, Andi Gutmans wrote: > Generally I think it's a good thing to allow to use objects as array > indexes. There are really two ways of doing it: > a) Try and find a way to create unique ideas. > b) Support __toString() and leave it up to the author. I see a third choice, which I prefer: c) leave the choice to the user, he knows better what to do with his object (like implementing his own get(Hash|Key) method. --Pierre