Just came here to say that I hit my first natural use case for context parameters, and I love it!
K 5
🦜 11
j
Joffrey
08/29/2025, 1:13 PM
So... What was the use case? 😄
e
eygraber
08/29/2025, 4:42 PM
Nothing crazy, I just found myself passing the same two parameters down a deep chain of calls, and it clicked in my head that this is what I could use context parameters for, and it felt much better.
Much like the rest of Kotlin; nothing crazy but it allows you to do what feels natural, and it works well 😄
thank you color 2
👌 1
👌🏾 2
h
hfhbd
08/30/2025, 11:03 AM
Same, I mostly use them for DSLs
➕ 1
e
Edoardo Luppi
09/03/2025, 6:40 PM
But aren't you simply moving the parameters from one place to another? You still have to specify them in the context.
e
eygraber
09/03/2025, 6:51 PM
Yes, but I don't need to specify them at the call sites as well