hcl icon indicating copy to clipboard operation
hcl copied to clipboard

issue with chained comparisons

Open olleicua opened this issue 9 years ago • 0 comments

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.

olleicua avatar Jun 29 '15 18:06 olleicua