Caleb B
12/02/2025, 8:35 PMbuildThing {
// ThingBuilder#defaultValue: () -> String
defaultValue = "literal string"
defaultValue = 0
defaultValue = { someExpensiveComputation() }
}
You can check it out here: https://github.com/cbrandt77/Kotlin-OverloadableSetters
I'm still working on publishing it and getting it on the plugin portal, but it's fully kitted out with diagnostics and should work as-is.
I'll be implementing more language features in the future, so keep an eye out! I've got a list that's like two pages long, lolJakob Heher
12/05/2025, 9:37 AMCaleb B
12/07/2025, 1:16 AMkotlin-assignment-plugin it uses.
But other than adding the plugin to Gradle, it'll work out of the box. If they don't add it, they'll still be able to invoke the setter methods as normal.