do you mean syntax sugar = macro ?

On Thu, Dec 29, 2011 at 12:48 PM, James Reeves <jree...@weavejester.com>wrote:

> On 29 December 2011 16:35, Louis Yu Lu <louisy...@gmail.com> wrote:
> > Agree on looking from the angle of data structure and their internal
> > presentation. But conceptually, [] and {} are just syntax sugars:
> >  [x y] -> (vector x y)
> >  {x y} -> (hash-map x y)
> >  #{x y} -> (hash-set x y)
>
> Well, no, not really.
>
> It's true that (vector x y) evaluates to [x y], but that's not syntax
> sugar, any more than (+ 1 1) is syntax sugar for 2.
>
> - James
>
> --
> 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
>

-- 
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