-
Notifications
You must be signed in to change notification settings - Fork 531
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
Add "landing pads" to the glossary #707
Comments
Is a "landing pad" a link to the section that discusses the term? |
I was looking at this the other day, my interpretation of the issue is that it is just adding to the glossary a general definition of landing pad and contextualize it somewhat for the rustc. I was thinking of something like "A section of user code intended to catch, or otherwise clean up after, an exception." |
Here's my attempt...
|
It's also tempting to use the term exception handler, but I don't know how to explain that since Rust doesn't have exceptions. |
"Panic handler" maybe? |
That's ambiguous with https://doc.rust-lang.org/nomicon/panic-handler.html IMO. This is more similar to a catch block, there are landing pads at the end of every scope. |
Since landing pads don't really have a analogy to any language feature but are instead used in the implementation of stack unwinding (which are in turn used by exceptions in C++ and panics in Rust), I don't think we should use "panic handler" or "exception handler". @tshepang's attempt is a good start. |
No description provided.
The text was updated successfully, but these errors were encountered: