Replies: 1 comment 2 replies
-
The ability to subtract versions from aliases is a useful addition to the syntax and can make it easier for users to specify which versions they want to use. However, as you have noted, it may not be fully compatible with other syntaxes that are already in use. Using "minus-major:lts" or "sub-1:lts" instead of "lts!-2" may indeed make the syntax more compatible with existing alternatives. It may also be helpful to consider adding documentation and examples for how to use this new syntax to avoid confusion for users who are not familiar with it. Overall, it's great to see experimentation and innovation in syntax to make it more user-friendly and flexible. As long as the changes are well-documented and communicated clearly, they can provide significant benefits to users. |
Beta Was this translation helpful? Give feedback.
-
I added the ability to subtract versions from aliases which is helpful to express things like "I want the latest 2 versions of nodejs", for example. Here is what it looks like currently:
What do people think? This is experimental so it can change. One thought I have is this isn't compatible with the other types of
.tool-versions
syntaxes like the following:So maybe it would be better to do something like
minus-major:lts
orsub-1:lts
? That might fit a bit better with existing alternatives.Beta Was this translation helpful? Give feedback.
All reactions