[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: things are eq? but not generated at the same time
From: |
Ian Price |
Subject: |
Re: things are eq? but not generated at the same time |
Date: |
Wed, 05 Sep 2012 20:13:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Stefan Israelsson Tampe <address@hidden> 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"