Skip to content

Pancake annotation positions #1135

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

Open
JunmingZhao42 opened this issue Feb 14, 2025 · 0 comments
Open

Pancake annotation positions #1135

JunmingZhao42 opened this issue Feb 14, 2025 · 0 comments
Labels

Comments

@JunmingZhao42
Copy link

From a pure usability perspective, the current annotations have to sit inside a function body or a loop body like:

fun main() {
  /@ requires ... @/
  /@ ensures ... @/
 
  // blah..

  while {
    /@ invariant .. @/
  }

}

which works as it is; but a bit counter-intuitive. A nicer way would be to put the annotations outside the bodies.

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

No branches or pull requests

2 participants