|
|
|
|
|
by tsegers
2074 days ago
|
|
No, it works. It's just non-obvious that it does due to the reliance on 4 levels of braces. It is equivalent to the following: lhs.Major < rhs.Major
or (lhs.Major == rhs.Major and lhs.Minor < rhs.Minor)
or (lhs.Major == rhs.Major and lhs.Minor == rhs.Minor and lhs.Patch <= rhs.Patch)
Deduplicating (lhs.Major == rhs.Major) decreased readability enough to be confusing. |
|