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

Design Draf: Allow to annotate code as must-not-allocate #11

Open
adelarsq opened this issue Mar 16, 2024 · 0 comments
Open

Design Draf: Allow to annotate code as must-not-allocate #11

adelarsq opened this issue Mar 16, 2024 · 0 comments

Comments

@adelarsq
Copy link
Owner

It's an interesting idea based on the article https://notes.eatonphil.com/2024-03-15-zig-rust-and-other-languages.html :

I think the ideal situation in the future will be that every language supports annotating blocks of code as must-not-allocate or something along those lines. Either the compiler will enforce this and fail if you seem to allocate in a block marked must-not-allocate, or it will panic during runtime so you can catch this in tests.

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

No branches or pull requests

1 participant