We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It's possible for monad expressions to have an indeterminate type. E.g:
do { if ( X ) << Q(...); return "DONE"; }
...evaluates to a promise if X is true, but evaluates to a raw value if X is false.
A workaround for this is to start your monad block with an empty promise:
do { << Q(); if ( X ) << Q(...); return "DONE"; }
...now it will always evaluate to a promise.
This enhancement adds sugar for this, like so:
do (Q) { if ( X ) << Q(...); return "DONE"; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It's possible for monad expressions to have an indeterminate type. E.g:
...evaluates to a promise if X is true, but evaluates to a raw value if X is false.
A workaround for this is to start your monad block with an empty promise:
...now it will always evaluate to a promise.
This enhancement adds sugar for this, like so:
The text was updated successfully, but these errors were encountered: