From 8fb3356473ede59747aaebf489f63ffa9df5ca2e Mon Sep 17 00:00:00 2001 From: inkling <27819662+driftsignal@users.noreply.github.com> Date: Thu, 25 Apr 2024 13:06:49 -0400 Subject: [PATCH] [hy/en] drop square brackets for conditionals (#4908) --- hy.html.markdown | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/hy.html.markdown b/hy.html.markdown index 5eddbf55..fc37d537 100644 --- a/hy.html.markdown +++ b/hy.html.markdown @@ -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