You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution I'd like to see for this is as follows:
make the underlying if() function effect-parametric
implement inference of effect parameters by using the effect bound of the actual function parameters. Scala does something similar (there's a talk and I think a paper by Odersky and colleagues)
Assume that the function
fun : Unit -> Unit
has an effect{system.FFI}
, the following code compilesHowever, the function foo should have the effect annotation {system.FFI}
The text was updated successfully, but these errors were encountered: