Chained comparison may evaluate operand twice
iafisher opened this issue · comments
func f() -> int {
print("f")
return 42
}
1 < f() < 100
prints f
twice.
A modern, high-level, statically-typed programming language
iafisher opened this issue · comments
func f() -> int {
print("f")
return 42
}
1 < f() < 100
prints f
twice.