Wouldn't attribute macros (#[verus]) be more ergonomic than macro calls (verus! {})?
#1602
KSXGitHub
started this conversation in
Language design
Replies: 2 comments 3 replies
-
|
See #1297 and #1356 for discussion and implementation. Also see the ongoing discussion of Rust contracts at https://rust-lang.github.io/rust-project-goals/2024h2/Contracts-and-invariants.html . |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Brief note regarding the last line: we have verusfmt which supports formatting inside the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Instead of,
This looks better:
Rustfmt and clippy also work better with functions with attribute macros than with a whole macro expression.
Beta Was this translation helpful? Give feedback.
All reactions