Longi94 / JavaSteam

Java library that provides an interface to directly interact with Valve's Steam servers.
MIT License
96 stars 20 forks source link

Migrate VersionGen and SteamLanguageGen to Kotlin #251

Closed LossyDragon closed 10 months ago

LossyDragon commented 1 year ago

Description

SteamKit deciced to modernize their generators a bit, and this was always a rainy-day task for me to do it anyways. I decided to port the generators from Groovy to Kotlin

Groovy and Kotlin have very similar syntaxing so it wasn't too hard to port it.

Pros: Compile time checks More concise code & less boiler plate IDE support No wierd groovy syntaxing, like << leftshift to append 🤯

Cons: Potentially longer compile times. -> since the generators are small and narrow, I didn't notice any longer compile times.

Checklist