From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.devel Subject: Re: things are eq? but not generated at the same time Date: Wed, 5 Sep 2012 21:27:44 +0200 Message-ID: References: <87mx14i8pk.fsf@Kagami.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=90e6ba6e87fc7be09e04c8f95e7e X-Trace: ger.gmane.org 1346873273 14257 80.91.229.3 (5 Sep 2012 19:27:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2012 19:27:53 +0000 (UTC) Cc: guile-devel To: Ian Price Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Sep 05 21:27:55 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 1T9LGT-0007cz-CW for guile-devel@m.gmane.org; Wed, 05 Sep 2012 21:27:53 +0200 Original-Received: from localhost ([::1]:45245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9LGQ-0003YN-1f for guile-devel@m.gmane.org; Wed, 05 Sep 2012 15:27:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9LGM-0003Xy-Kt for guile-devel@gnu.org; Wed, 05 Sep 2012 15:27:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9LGL-00039q-6d for guile-devel@gnu.org; Wed, 05 Sep 2012 15:27:46 -0400 Original-Received: from mail-ie0-f169.google.com ([209.85.223.169]:50851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9LGL-00039l-1M for guile-devel@gnu.org; Wed, 05 Sep 2012 15:27:45 -0400 Original-Received: by iec9 with SMTP id 9so2003977iec.0 for ; Wed, 05 Sep 2012 12:27:44 -0700 (PDT) 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=FrkR3a9Dj9o6Sy7pd7PembqPKz1TotU3/US8CHT+MSc=; b=JSG5noyWdG18a5PXnWtO81sPK2tzgnFPC+41eWHO6HS+Uqtbv0s2oS/UWL1CZnz26i NEZxQiLiGu3oI9lwESdDHzoZ+gxoqQFHBMVf6DgCtGIwN2nAG644r5qV1huY4D8VBW5z k/MURabc8KXRZQtUE23NO0gOe091wgDHxbQz1XMfttgnFaImpfc/qJ80OO+IRYgPwLAI M5qoa9w/PQkNCtfS1uCdA5zMQLVTwycztc5htq72JW90wt9E/Gs+wheKE1jIpZVYzRsq mgsuKPTfeuCJUR8vUwzf+B6/krd9OuyenprBEEzyjO0FKWe/qjUYXmckexHuNm9S6lQz BVvg== Original-Received: by 10.42.170.73 with SMTP id e9mr11595072icz.11.1346873264431; Wed, 05 Sep 2012 12:27:44 -0700 (PDT) Original-Received: by 10.50.171.104 with HTTP; Wed, 5 Sep 2012 12:27:44 -0700 (PDT) In-Reply-To: <87mx14i8pk.fsf@Kagami.home> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.223.169 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:14859 Archived-At: --90e6ba6e87fc7be09e04c8f95e7e Content-Type: text/plain; charset=ISO-8859-1 Yes, I can agree om that. But this should be very stated clearly and perhaps added to a pitfall's section. /Stefan On Wed, Sep 5, 2012 at 9:13 PM, Ian Price wrote: > 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" > --90e6ba6e87fc7be09e04c8f95e7e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, I can agree om that.

But this should be very stated clearly and= perhaps added to a pitfall's section.

/Stefan

On Wed, Sep 5, 2012 at 9:13 PM, Ian Price <ianpri= ce90@googlemail.com> wrote:
Stefan Israelsson Tampe &l= t;stefan.itampe@gmail.com>= ; writes:

> Is this an optimization we need. I can figure out applications where y= ou 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<= br> 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-res= et.com

"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"= ;

--90e6ba6e87fc7be09e04c8f95e7e--