-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do blocks within functions #271
Comments
Much like Haskell monads,
If you'd like to remove the ambiguity caused by that first type constructor (a.0 in the above) then you can add a type signature. Notice you can never For example:
|
Are there other monads besides TopLevel? If not, and there's only one monad, would it be possible to automatically promote (demote?) non-monadic to monadic? |
The other monads are the ones for function specs ( It might be useful to have a kind of defaulting to |
Defaulting would be lovely? Would that somehow facilitate merging |
No, defaulting would not let you merge Another feature we could consider is to allow the
|
Another idea is that maybe we should change the types of most |
A third idea is to ditch the monadic types completely in favor of some kind of effect annotations on function types. |
Using Python to control SAW should provide a more familiar notion of function definitions. That's probably easier than changing SAWScript, so I'm going to close this. |
Why does one work and one fail?
The text was updated successfully, but these errors were encountered: