issue with chained comparisons
Opened this issue · 0 comments
olleicua commented
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.