Better HN
top
new
best
ask
show
jobs
Log in
Sign up
When is it OK to use goto? | Better HN
When is it OK to use goto?
(studio.youtube.com)
2 points · by
gandalfgeek
· 7y ago · 2 comments
Comments
[–]
iamNumber4
7y ago
In languages that support goto, but do not have try catch syntax. The appropriate use of goto for failure states to properly handle deallocation of allocated memory. If condition not met goto: cleanup
[–]
LandR
7y ago
Link is broken.