Hello, recently i've seen a post showing a `contex...
# getting-started
l
Hello, recently i've seen a post showing a
context(Class)
keyword before a function. Like:
Copy code
context(Foo)
fun test() { ... }
Where can I find resources about it ?
s
It's a prototype feature, so documentation is thin on the ground, but you could start here: https://github.com/Kotlin/KEEP/blob/master/proposals/context-receivers.md
l
I'll look into it thanks !
s
Actually it seems the design has changed and there's a new proposal 😄 https://github.com/Kotlin/KEEP/blob/context-parameters/proposals/context-parameters.md
K 2
Life moves pretty fast
😆 2
j
oooh, named parameters! That's way better