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

Change Syntax for effect casts #5

Closed
lrytz opened this issue May 10, 2013 · 0 comments
Closed

Change Syntax for effect casts #5

lrytz opened this issue May 10, 2013 · 0 comments

Comments

@lrytz
Copy link
Owner

lrytz commented May 10, 2013

Currently, simple ascriptions are interpreted as effect casts:

  println(): @noIo

This is inconsistent with the behavior for normal types, where ascription triggers a type check. Also there is no way to trigger an effect check at a specific location, which would often be useful.

So we will change this:

  • Simple ascription will trigger an effect check, so println(): @noIo will trigger an error message
  • Effect casts will require an additional @unchecked annnotation, i.e. @println() @unchecked @noIo is an effect cast
@lrytz lrytz closed this as completed in 998e74a May 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant