Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79794 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44496 invoked from network); 17 Dec 2014 21:49:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2014 21:49:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.173 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.173 mail-pd0-f173.google.com Received: from [209.85.192.173] ([209.85.192.173:48204] helo=mail-pd0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/00-43959-85AF1945 for ; Wed, 17 Dec 2014 16:49:13 -0500 Received: by mail-pd0-f173.google.com with SMTP id ft15so17022554pdb.32 for ; Wed, 17 Dec 2014 13:49:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=CKOzdwADys7k2itOukCmqsRS3hevna6yf1q6BvJQUUI=; b=vH6UBvR3wjVPEm1pdd+y8OvXH2T8VYbm8Bh5SfFd/4ZQGqg+fAh7gbxR21qbnlWL/a hHP2sspa8vhubYpsFIaedATPSzVah8euyavCQNABrPjIATha7cgjto1QxihEUriGq76h zQdHGxDko74vyeV9l+RrwbZoyh9LyxLdGV1oGnSj65guh/IIijLa0paO0DOaNMd+r0LA hmljB2bTVtacjY0O7dBIOQO3D0q8ihZpCkJOgAl0IRwqAo4MLmL965vjuApE0gd4J60P V5w1j1MN9fzGPG3CB75ETN/xHUUXUFq69UNuTCw9UfRoPSwdg0QYnIyALEW9PQqjnUaq qdPw== X-Received: by 10.68.189.136 with SMTP id gi8mr74584917pbc.54.1418852949078; Wed, 17 Dec 2014 13:49:09 -0800 (PST) Received: from stas-air.corp.wikimedia.org (tan4.corp.wikimedia.org. [198.73.209.4]) by mx.google.com with ESMTPSA id d14sm4815206pdj.46.2014.12.17.13.49.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Dec 2014 13:49:08 -0800 (PST) Message-ID: <5491FA53.3010107@gmail.com> Date: Wed, 17 Dec 2014 13:49:07 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Levi Morrison CC: PHP Internals References: <548FEE87.7020602@gmail.com> <5491B77A.4020004@gmail.com> <5491CE95.7060909@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC][VOTE] Objects as Keys From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Just because you say it doesn't affect it doesn't mean it doesn't. I > think it would be quite silly to support storing hashes and/or storing > objects and to me that blocks the latter since you are proposing the > former. I don't know why you think it's "quite silly" to have both scalar and object keys, as that's exactly what would you need to implement with you want object keys - scalar keys are not going to go anywhere. So your assumption that this RFC somehow blocks objects as keys is still wrong. > Programmable hashes of objects should be external to the object anyway > because eventually someone wants to store the same object in a > different way in two different structures. That is the requirement that no language I can think of implements - Java, Python, Ruby, C# all have programmatic hash method, and none of them changes it for different structures. -- Stas Malyshev smalyshev@gmail.com