I'd really like a concise expression for "is version x compatible with version y?"
Specifically, suppose I write code against one version of an API, and the API exposes a semver-compliant version. Is v_caller compatible with v_api?
The most concise expression I can come up with is something like v_caller <= v_api and v_caller.major == v_api.major, but I really wish this was simpler and more readable. Maybe v_caller.compatible(v_api); or maybe v_caller.can_call(v_api) better illustrates which operand is which.
I know this would be covered by #241, but its scope is quite broad. I wanted to specifically call out this feature.
I'd really like a concise expression for "is version x compatible with version y?"
Specifically, suppose I write code against one version of an API, and the API exposes a semver-compliant version. Is
v_callercompatible withv_api?The most concise expression I can come up with is something like
v_caller <= v_api and v_caller.major == v_api.major, but I really wish this was simpler and more readable. Maybev_caller.compatible(v_api); or maybev_caller.can_call(v_api)better illustrates which operand is which.I know this would be covered by #241, but its scope is quite broad. I wanted to specifically call out this feature.