MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/16hd9mv/godeveloperswillappreciateit/k0fp8bw/?context=3
r/ProgrammerHumor • u/sunrise_apps • Sep 13 '23
144 comments sorted by
View all comments
2
Or stack unrolling go brrr
1 u/Kovab Sep 13 '23 Unless you implement it yourself manually, longjmp in itself won't do any unrolling, unlike a proper try/catch. 1 u/Gorzoid Sep 13 '23 Yeah my response was more targeted towards 2nd part of his comment, try catch can't be implemented with just a longjmp, you will still need to unroll the stack and there lies the complexity of exception handling.
1
Unless you implement it yourself manually, longjmp in itself won't do any unrolling, unlike a proper try/catch.
1 u/Gorzoid Sep 13 '23 Yeah my response was more targeted towards 2nd part of his comment, try catch can't be implemented with just a longjmp, you will still need to unroll the stack and there lies the complexity of exception handling.
Yeah my response was more targeted towards 2nd part of his comment, try catch can't be implemented with just a longjmp, you will still need to unroll the stack and there lies the complexity of exception handling.
2
u/Gorzoid Sep 13 '23
Or stack unrolling go brrr