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
Youssef Shoaib [MOD]
09/12/2024, 1:06 PM
That's what most of us are going with rn. Also, avoid the Kotlin update that will have neither
d
Daniel Pitts
09/12/2024, 9:38 PM
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.