Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
boolemancer
on May 20, 2022
|
parent
|
context
|
favorite
| on:
Rust: A Critical Retrospective
In my experience, a preference for single exit comes from C where you always need to make sure to clean up any resources, and an early exit is a great way to have to duplicate a bunch of cleanup logic or accidentally forget to clean things up.
Of course, that's what goto is actually good for.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Of course, that's what goto is actually good for.