How to pass polymorphic effect type into another effect signature? #377
-
The idea is that
If I remove the I could add the effect to
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If one function needs divergence, every function that runs in the same scope essentially has to at least have divergence. Divergence inference is still pretty immature compared to the rest of the type system. Granted, it is trying to solve a small portion of the halting problem, so it's not going to be perfect.
|
Beta Was this translation helpful? Give feedback.
If one function needs divergence, every function that runs in the same scope essentially has to at least have divergence.
So the solution is to add divergence to both input parameters.
Divergence inference is still pretty immature compared to the rest of the type system. Granted, it is trying to solve a small portion of the halting problem, so it's not going to be perfect.