Skip to content
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

Add Groovy 4 #315

Open
FranzMartyn opened this issue Jul 31, 2024 · 1 comment
Open

Add Groovy 4 #315

FranzMartyn opened this issue Jul 31, 2024 · 1 comment

Comments

@FranzMartyn
Copy link

FranzMartyn commented Jul 31, 2024


Groovy 2.5, the currently only version available, came out in 2018 while Version 4 was first released in 2022 and is currently getting new updates. As of writing this, the newest version was released in June 2024. The newer versions of Groovy 4 support Java 17, which is also the newest Java Version supported on Codewars. Due to being compatible with JDK 16+, it brings a lot of nice features from Java:

@FranzMartyn
Copy link
Author

FranzMartyn commented Jul 31, 2024

2 Other things that would help with a newer Groovy version, especially for writing Test Cases:

  • ArrayList.shuffled() to both shuffle a list and return it afterwards
  • Random.nextInt(int origin, int bound). Currently, a workaround like min + Random.nextInt(max) or random.nextInt(max + 1 - min) + min is required to achieve the same effect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants