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

Support no panic macro #263

Open
AbstractiveNord opened this issue May 5, 2024 · 1 comment
Open

Support no panic macro #263

AbstractiveNord opened this issue May 5, 2024 · 1 comment
Labels
F-feature-request feature request

Comments

@AbstractiveNord
Copy link

AbstractiveNord commented May 5, 2024

Is your feature request related to a problem? Please describe.
Often panics may hide deep inside our code without any indication. Fast discovery of that kind of bugs may help build fast, reliable and guaranteed code. Monoio already have work with that in #257.

Describe the solution you'd like
A no_panic macro, which guarantees at compile time, that function can't ever panic.

Describe alternatives you've considered
Doing nothing about it.

@AbstractiveNord AbstractiveNord added the F-feature-request feature request label May 5, 2024
@ihciah
Copy link
Member

ihciah commented Sep 19, 2024

no_panic may have false positive result I think. Makeing the code pass it maybe a hard problem. I also have a similar try here but it can only work under simple cases.

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

No branches or pull requests

2 participants