Speculation chained comparison optimization (possibly with outlining)

If I write:

a < b < c

I’m kind of expecting it to be true (well, at least checking).

It of course depends on the values, and I expect c to be farther from a than b is.

Maybe I have it all backwards, but I’m looking into alternatives that short-circuit from left-to-right [evaluation order].

There are exponentially many possible ways to check, and then some more… and I’m looking at the best way to find one.

An example from previously:

‘a’ <= c <= ‘z’ # In the uppercase function I was looking at.

I guess the compiler didn’t consider that range to by tiny subset of the full Unicode codepoint range (or from UInt32)…

Often then width of the ranges, could be taken into account (helpful?), yes, here that might actually be bad… as English is more common, or at least English letters in e.g. my language Icelandic.