-
Notifications
You must be signed in to change notification settings - Fork 149
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
docs: add Queens effect example #7252
base: master
Are you sure you want to change the base?
Conversation
Queens
effect exampleThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems cool to me, you can ping me again if you add documentation :)
Also, @herluf-ba Parser2 fails on this example |
Can you open separate ticket? Thanks! |
@jaschdoc I had a look. The reason is the doc-comments above
Another one is a couple of restrictions to block comments: def main(): Int32 =
if /* This is no longer ok */ (true) 1 else 2 |
Why are effect handler defs not considered declarations? |
Also, from commit d678d79 I got this
|
That's a good question. Conceptually I guess they are... I'll make note of it, maybe we need to allow doc comments on effect handlers in the future. |
Personally I think that would make sense. Especially if the handler is nontrivial. But then maybe you would want to refactor that into a function that the handler calls... but I guess you can't expect users to do that so better to just give them the opportunity to write some documentation at the handler site. 😀 |
Effect handlers are inside expressions. Not at the top level. No different from match. |
True from a language design perspective but I still think users would see a |
@magnus-madsen I think this is ready to merge with #7643 closed. |
Thanks-- I am not merging it yet for other reasons: Still waiting for set-based effects to arrive. |
Not sure if it's usable as an example. Still needs documentation if we decide to merge it in.
Related to #7093
Related to #7218