What is the purpose of square bracket? and when must it be used? #2200
-
Hi, I have been trying to get my teeth in hy, and I must admit this shell is fairly tough. The argument list in
Is there a reason why they cannot be used interchangably (I noticed how there is no quoting in hy, is that related), is this similar to how clojure works (sorry, I am not familiar with clojure at all, so I take this chance to ask it here). Are there any other use cases where [] must be used? On another note, I found out that |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
So couple questions going on here.
Hopefully that answer's your questions! Feel free to ask if you have more and have fun messing around with Hy! |
Beta Was this translation helpful? Give feedback.
-
In most cases, |
Beta Was this translation helpful? Give feedback.
So couple questions going on here.
pip install --pre hy
and it's companion library hyrule (which is basically Hy's stdlib). The alpha branch contains many new features and additions (includinglet
) that we're adding in order to get to1.0
.'
,`
,~
, and~@
(you can read about quoting here)'(1 2 3)
to define lists, we're lispy python and so it's more appropriate…