Thank you David and Alexis for the helpful answers.

Deyaa

On Thu, Dec 29, 2016 at 2:17 AM, Alexis King <lexi.lam...@gmail.com> wrote:

> David’s explanation is good. Let me add a little bit more context. It is
> a common mistake to think that ' can be used as a shorthand form of the
> `list` function, but this is not the case. The quote form is a
> primitive, and it has very specific (if fairly simple) behavior with
> respect to evaluation.
>
> I’ve written a Stack Overflow answer that goes over the difference
> between quote and list and explains quote in general, which you might
> find useful: http://stackoverflow.com/a/34984553/465378
>
> In general, if you are unsure about whether you should use quote or
> list, prefer list; it is more likely to behave as you expect.
>
> > On Dec 28, 2016, at 22:01, Deyaaeldeen <diaa6...@gmail.com> wrote:
> >
> > Hi,
> >
> > I wonder why (list->set '('1)) evaluates to (set ''1) instead of (set
> > '1). I use Racket v6.7.
> >
> > Thanks!
> >
> > Deyaa
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to