Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78487 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11050 invoked from network); 30 Oct 2014 20:28:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Oct 2014 20:28:54 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.244 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.244 imap1-3.ox.privateemail.com Received: from [198.187.29.244] ([198.187.29.244:47090] helo=imap1-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/61-04091-68F92545 for ; Thu, 30 Oct 2014 15:28:54 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 8C544B000A4; Thu, 30 Oct 2014 16:28:50 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RvU6v0IRj6Ac; Thu, 30 Oct 2014 16:28:50 -0400 (EDT) Received: from oa-res-26-28.wireless.abdn.ac.uk (oa-res-26-28.wireless.abdn.ac.uk [137.50.26.28]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 21222B000A0; Thu, 30 Oct 2014 16:28:48 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) In-Reply-To: <69356D8D-44FB-411F-907D-94B61D4A472A@fastmail.fm> Date: Thu, 30 Oct 2014 20:28:46 +0000 Cc: Stas Malyshev , Larry Garfield , "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable Message-ID: <764EEA11-4AA9-4E57-B7FB-BA926D4DB32A@ajf.me> References: <544DA1CD.9070109@php.net> <4ED7146272E04A47B986ED49E771E347BD7E35E061@Ikarus.ameusgmbh.intern> <51CF9ADE-2E04-4BC0-9E5C-B93498251F59@php.net> <54527E7E.2020505@garfieldtech.com> <54528445.8080604@sugarcrm.com> <69356D8D-44FB-411F-907D-94B61D4A472A@fastmail.fm> To: Will Fitch X-Mailer: Apple Mail (2.1990.1) Subject: Re: [PHP-DEV] [RFC] Using objects as keys From: ajf@ajf.me (Andrea Faulds) > On 30 Oct 2014, at 19:51, Will Fitch wrote: >=20 > My only concern at this point is the default value of the hash. If we = were to use spl _object_hash, we could be setting a precedence that a = hash must be unique to each object. In addition to what Stas says above, well, not all objects work like = that. What if I want objects to hash by value, not by identity? Don=E2=80=99= t force the identity model. -- Andrea Faulds http://ajf.me/