Thank you David and Alexis for the helpful answers.
Deyaa
On Thu, Dec 29, 2016 at 2:17 AM, Alexis King 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 t
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.
Hi Deyaa,
> I wonder why (list->set '('1)) evaluates to (set ''1) instead of (set '1).
> I use Racket v6.7.
The expression
'('1)
is a shorter way of writing
(quote ((quote 1)))
The value of (quote x) is x, so the value of that is the list containing
(quote 1), or ((quote 1)). In other
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
t
4 matches
Mail list logo