Skip to content
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

Implement multi effects #10

Closed
b-studios opened this issue Apr 5, 2020 · 1 comment
Closed

Implement multi effects #10

b-studios opened this issue Apr 5, 2020 · 1 comment
Labels
feature New feature or request

Comments

@b-studios
Copy link
Collaborator

Right now every effect operation corresponds to one effect. It is planned to relax this and allow multiple operations. For this we would change declaration syntax from:

effect Flip(): Boolean

to:

effect Amb {
  def flip(): Boolean
}

The old syntax could be syntactic sugar for:

effect Flip {
  def flip(): Boolean
}

Effect invocation could be

do Amb.flip()

where

def flip(): Boolean / Amb = do Amb.flip()

could automatically beingbegenerated, so typically effect operations would be invoked as:

flip()
@b-studios b-studios added the feature New feature or request label Apr 5, 2020
@b-studios
Copy link
Collaborator Author

Closed by #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant