New version of <wither> is out! It's been a while...
# feed
y
New version of wither is out! It's been a while! It now supports Kotlin 2.4.10, and adds a new
context(foo, bar, baz)
function to bring in context parameters! It's great at preventing scope pollution Special thanks to @Gleb Minaev for investigating this feature! In case you're unfamiliar, there's a decent ReadMe, but TL;DR: It's a compiler plugin that lets you write code such as:
Copy code
fun foo() {
  context("hello", 42)
  someFunctionThatNeedsIntAndStringContexts()
  println(contextOf<String>())
}
So you don't have to deal with indentation hell! Try it out today! All it takes is just:
Copy code
plugins {
  id("io.github.kyay10.wither") version "0.0.2"
}
and simply import
io.github.kyay10.wither.with
or
io.github.kyay10.wither.context
kodee happy 6
c
There is no impact on the public ABI, right? A caller of the function doesn't need the plugin?
y
Yep! It only affects your function bodies, that's it!
🙏 1