To add my two cents, IMHO the literal notation for sets, vectors &
maps are just that---they are the "literal" representations of those
data-structures and are not semantically equivalent to constructor
functions. As such, the literal notation should really be used with
constants; in every other case, you should use the constructor
functions.

I understand that you will have to probably change a lot of code, but
I think that's one (semantic) mistake that needs correcting.

Regards,
BG

On Sun, Aug 5, 2012 at 11:29 AM, Mark Engelberg
<mark.engelb...@gmail.com> wrote:
> Perhaps you don't use sets as much as I do, so to help you put it in
> perspective, imagine how you'd feel if I told you:
>
> "Oh by the way, that nice vector notation you use to write things like [1 3
> 5 7 2].  Yeah, well, it's only reliable if there are constants inside.  That
> thing you've been doing where you write [a b c] -- that usually works, so
> you've probably been doing that a lot in your code.  But some small
> percentage of the time, that will generate a run-time error.  From now on,
> the only way to be safe is to replace every instance of a vector with
> non-constants with a call to vector, i.e., (vector a b c)."
>
> You *could* fix your code and develop new habits, but how would you feel
> about it?
>
> --Mark
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Baishampayan Ghose
b.ghose at gmail.com

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to