To follow up on my previous post, having this ```c...
# arrow
d
To follow up on my previous post, having this
Copy code
class MyService {
  fun Raise<MyError>.someMethod(): Int = 1
}
I have to call the method as
with(myService) { someMethod() }
which is quite unintuitive. Will the situation improve with context parameters where I will be able to write
Copy code
context(_: MyError)
fun someMethod(): Int = 1
?
y
Yes because then you'll be able to call
myService.someMethod
provided you have a
Raise<MyError>
in the current context
d
Great! One minor correction: I should probably then write
Copy code
context(_: Raise<MyError>)
fun someMethod(): Int = 1
r
How did you enable context parameters?
d
Well, I physically didn't 🙂 I'm just thinking ahead based on my understanding of the KEEP.
🫶 1
r
Ah, ok 😅