hcl
hcl copied to clipboard
issue with chained comparisons
hcl> (< 1 2 3)
js: ((1 < 2) && (2 < 3));
true
hcl> (< 1 (+ 2 3) 3)
js: ((1 < (2 + 3)) && ((2 + 3) < 3));
false
Should use a reference in case the nested expression has side effects or performance implications.