Quoting works
Hy seems to support quoting. I'm not familiar enough with lisp/hy to say much more
This commit is contained in:
parent
a11f92da37
commit
ec4607d644
@ -199,14 +199,13 @@ Hy. Let's experiment with this in the hy interpreter::
|
|||||||
=> (, 1 2 3)
|
=> (, 1 2 3)
|
||||||
(1, 2, 3)
|
(1, 2, 3)
|
||||||
|
|
||||||
(You may notice that at present, the common lisp method of quoting
|
If you are familiar with other lisps, you may be interested that Hy
|
||||||
things like so:
|
supports the Common Lisp method of quoting:
|
||||||
|
|
||||||
.. code-block:: clj
|
.. code-block:: clj
|
||||||
|
|
||||||
'(1 2 3)
|
=> '(1 2 3)
|
||||||
|
(1L 2L 3L)
|
||||||
does not work. Instead, use square brackets as above.)
|
|
||||||
|
|
||||||
You also have access to all the builtin types' nice methods::
|
You also have access to all the builtin types' nice methods::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user