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
now .sas here adds error effect for sus, but its wrong
typeKnightKnight sas ->Unit!= [
ErrorthrowWithMessage: "qwf"
]
Knight sus ->Unit= [
x = [
.sas
]
x do
]
Problem: what if we will call something with error inside map or forEach?
Have 2 different functions with and without errors for each STD lambda is bad!
Maybe just correctly infer all the error effects for lambdas the same way we do for usual variables?
x = .sas // x has type Unit!{Error}
x = [ .sas ] // x has type [ -> Unit!Error ]
The text was updated successfully, but these errors were encountered:
now .sas here adds error effect for sus, but its wrong
Problem: what if we will call something with error inside map or forEach?
Have 2 different functions with and without errors for each STD lambda is bad!
Maybe just correctly infer all the error effects for lambdas the same way we do for usual variables?
x = .sas // x has type Unit!{Error}
x = [ .sas ] // x has type [ -> Unit!Error ]
The text was updated successfully, but these errors were encountered: