Closed tomjmech closed 1 year ago
I don't think so, @tomjmech. The "order" mentioned here is according to the list presented just before this sentence.
I agree it's confusing having this order being the reverse of precedence (lower order means higher precedence), but at least it's correct.
As far as I understand, in the list, lower order means lower precedence. That is also consistent with the first example right after:
LGPL-2.1-only OR BSD-3-Clause AND MIT
is equivalent to
LGPL-2.1-only OR (BSD-3-Clause AND MIT)
Huh?
The list is +
, WITH
, AND
, OR
. So AND
has a lower order (3rd position) than OR
(4th position).
As the example shows, AND
has higher precedence than OR
, since it binds more closely making x OR y AND z
meaning x OR (y AND z)
.
Ah, I understand what you mean now. I was thinking visually (where OR
is the lowest in order and +
is the highest in order).
In D.4.5 Order of precedence and parentheses:
shouldn't the words 'lower' and 'higher' be swapped?