Open yhtMinceraft1010X opened 1 year ago
Sorry for not chiming in earlier. I'm not sure if we want to do this in the end. While Kotlin has advantages, our main source of developers come from using addressbook-level3, which means it may be better to use the same syntax here as the one used there. Still, no harm exploring the idea with an experimental PR to see how it goes.
What feature(s) would you like to see in RepoSense
Our current build.gradle script uses the Groovy syntax (example below):
Is the feature request related to a problem?
Kotlin has been recommended due to cleaner syntax and enhanced editing experience in IDEs, particularly IntelliJ. Below shows the equivalent block in Kotlin syntax:
One key advantage of Kotlin, imo, is that the syntax is much closer to that of Java, which we use for the backend, compared to Groovy. As an example, Groovy allows single and double quotes for strings whereas Kotlin requires strings to be in double-quotes, just like in Java.
Having a more standardised syntax means that someone who starts work on build.gradle.kts will find it easier to transition to the Java code.
If possible, describe the solution
Useful links: