|
|
|
|
|
by GolDDranks
424 days ago
|
|
I think that for a guarantee as central as non-panicking, there ought to be eventually some kind of support in the core language. (Just throwing ideas here, but there could be `#[never_panic]` for simple cases where the compiler can clearly see that panic is not possible, or error otherwise, and `#[unsafe(never_panic)]` for more involved cases, that could be proven with 3rd party tools or by reasoning by the developer like normal unsafe blocks.) For more complicated guarantees, it's harder to see if there's enough common ground for these tools to have some kind of common ground. |
|