core icon indicating copy to clipboard operation
core copied to clipboard

Add (||.) and (&&.), and handle their non-bool use correctly

Open Tarmil opened this issue 8 years ago • 0 comments

We have "dotted" operators that inline to plain JS operators for all operators except these two.

The main reason to use them would be to use their short-circuiting property for something else than booleans (eg a || b returns a if it is truthy, otherwise b, neither of which are necessarily booleans). This requires support in the breaker, which currently assumes that operands to these two operators are booleans.

Tarmil avatar Oct 18 '17 14:10 Tarmil