[hy/en] drop square brackets for conditionals (#4908)

This commit is contained in:
inkling 2024-04-25 13:06:49 -04:00 committed by GitHub
parent a41ac723ae
commit 8fb3356473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -159,12 +159,9 @@ True ; => True
; nest multiple if else if clauses with cond
(cond
[(= someval 42)
(print "Life, universe and everything else!")]
[(> someval 42)
(print "val too large")]
[(< someval 42)
(print "val too small")])
(= someval 42) (print "Life, universe and everything else!")
(> someval 42) (print "val too large")
(< someval 42) (print "val too small"))
; group statements with do, these are executed sequentially
; forms like defn have an implicit do