Do I understand correctly that I'm currently unabl...
# language-evolution
d
Do I understand correctly that I'm currently unable to use context parameters? It is feasible/safe to instead: • use current context receivers • avoid functionality deprecated by context parameters • upon migration just add names to context parameters ?
y
That's what most of us are going with rn. Also, avoid the Kotlin update that will have neither
d
I personally would avoid using context receivers in new code, as unfortunate as that is. Also note that there are some actual bugs when using context receivers with inline functions. I don't remember precisely the cause, but basically the inliner swaps the order of the arguments to the call, which causes a ClassCastException. Might not be a show stopper for you, but it definitely prevented some of my code from being feasible.