-
Notifications
You must be signed in to change notification settings - Fork 369
Version overloading #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Version overloading #423
Conversation
proposals/version-overloading.md
Outdated
Any leading zeroes within the integer parts are ignored, such that `1.02` == `1.2`. | ||
Version strings that do not match this format are reported as an error. | ||
Version strings are parsed using the [Apache Maven comparable version](https://maven.apache.org/ref/3.5.2/maven-artifact/apidocs/org/apache/maven/artifact/versioning/ComparableVersion.html), | ||
which is [already implemented in the Kotlin compiler](https://github.com/JetBrains/kotlin/blob/d2966040c414579bb393c3fbcd517eb27f040efb/compiler/util/src/org/jetbrains/kotlin/config/MavenComparableVersion.java). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word "implemented" is a bit weird here because MavenComparableVersion.java
is just taken verbatim from the Maven project. (Also in the "Semver-like version number" section)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, MavenComparableVersion.java
hasn't been updated for 9 years since it was originally copied from the Maven project, so if there are any bug fixes or behavior changes there, probably we need to update it with a newer version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because MavenComparableVersion.java is just taken verbatim
Ah okay, somehow I missed this.
we need to update it with a newer version.
Got it, I will note this for the implementation.
Comments here are for minor corrections to the text itself.
The discussion about this feature is in #431.