From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Price Newsgroups: gmane.lisp.guile.devel Subject: Re: things are eq? but not generated at the same time Date: Wed, 05 Sep 2012 20:13:43 +0100 Message-ID: <87mx14i8pk.fsf@Kagami.home> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1346872437 6392 80.91.229.3 (5 Sep 2012 19:13:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2012 19:13:57 +0000 (UTC) Cc: guile-devel To: Stefan Israelsson Tampe Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Sep 05 21:13:59 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T9L2z-0000Hk-RG for guile-devel@m.gmane.org; Wed, 05 Sep 2012 21:13:57 +0200 Original-Received: from localhost ([::1]:55352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9L2w-0001xw-S5 for guile-devel@m.gmane.org; Wed, 05 Sep 2012 15:13:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9L2t-0001xj-PO for guile-devel@gnu.org; Wed, 05 Sep 2012 15:13:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9L2s-0006w9-JR for guile-devel@gnu.org; Wed, 05 Sep 2012 15:13:51 -0400 Original-Received: from mail-wi0-f171.google.com ([209.85.212.171]:60345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9L2s-0006vu-Bg for guile-devel@gnu.org; Wed, 05 Sep 2012 15:13:50 -0400 Original-Received: by wibhq4 with SMTP id hq4so4336094wib.12 for ; Wed, 05 Sep 2012 12:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=E8WPf7lLHZMjrS4/gCzJ7oPeZ0ZaqNW63CeHcJ4Fwks=; b=b0SSMl0itSPr3ebj+8D8TTM24kOIZQRFkqAjm4HB3oBMIucvE4e5C1J3Bdpe1TZqm7 yCnFfFCaEa2O/xE3nUhtOOrMGqv64vd1UONBPKlENByMI1sZ+r8sYFvbqFEzDvPvMCW2 CIdkFnY9zMjtgBnEFiNoZmcQCKqDGeFZxcv4/75OIfRdY9GyfIVgoowBpO8ctJQz2Hyw Qnf8qKZ2zbaZFZD6hSZ1XbeWqprYVzl7kB6iLAEIJfN4GYdXF8UF7FtU+6ZwT72XBhhw +WzmvyFWsHtdCV6vh1lggHdC73PmtXnL5sK/pCfhwDCETrms2d10tBa8o0VdtmMP7Uhx SafQ== Original-Received: by 10.216.214.208 with SMTP id c58mr13889720wep.148.1346872429156; Wed, 05 Sep 2012 12:13:49 -0700 (PDT) Original-Received: from Kagami.home (host86-174-96-191.range86-174.btcentralplus.com. [86.174.96.191]) by mx.google.com with ESMTPS id hv8sm88072wib.0.2012.09.05.12.13.46 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Sep 2012 12:13:48 -0700 (PDT) In-Reply-To: (Stefan Israelsson Tampe's message of "Wed, 5 Sep 2012 20:44:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.171 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14857 Archived-At: Stefan Israelsson Tampe writes: > Is this an optimization we need. I can figure out applications where you do > not want this behavior e.g. I wan't to make distinct objects > and add metadata by making a vector of it. Now different objects might have > the same metadata and now go against my intuition and > coerce the objects. I'm not sure I understand what you are trying to say, make vector of what, the distinct objects? Then you can't do that as a vector literal anyway. Anyway if vectors are immutable, as I believe they are, it doesn't really harm to make them eq? If you want distinctness and mutability, you can always call the vector constructor. -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"