Optimizations of `and` and `or` (possibly new semantics for) and comparison chaining

A. Continuing the discussion from Does Julia ever do outlining?:

@giordano

Nothing prevents you from testing the condition

1 < -3 < 4

in this case there is no performance gain, on the contrary you’ll have performed one extra test.

In that case, with constants no, but in general, could be. See may race idea of (long) chaining of || (converted from [implicit] &&) at:

B. @ihnorton You merged into the outlining (and closed it! EDIT: I see the “no” now…). I guess I was a little off-topic at the other thread you merged from. The outlining question wasn’t closed, so I guess you may have made a mistake on closing (who has the priv. to undo?)?

Didn’t you also merge into the wrong thread…?

2 posts were merged into an existing topic: Does Julia ever do outlining?