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
I wonder if instead of throwing an error we could just allow recursive definitions and add the self implicitly? You'd still need to explicitly use self sometimes for nested objects:
Obj=?{ my_obj: Obj, inner: { inner_obj: Self}}
# or if we get fancyObj=?{ my_obj: Obj, inner: { inner_obj:Obj.inner}}
# but even then we could never completely drop selfFun=?(Num, { my_obj: Self }) -> Any
Think it's worth allowing recursive definitions or just keep the single self way (with a better error message)?
This is a very confusing error message. In this case:
The message should be: "recursive contract 'MyC'", please use Self
The text was updated successfully, but these errors were encountered: