r/transprogrammer • u/definitelynotagirl99 • Jul 20 '24
Implementing exceptions
Just wanna know if anyone knows a more time-efficient way of implementing exceptions in a language than this or sees any issues with this design :3

handlethrow would exist separately for each try-catch clause
(obv this will only work for x86 but smth similar should work for all major architectures)
15
Upvotes
View all comments
Show parent comment
1
u/definitelynotagirl99 Jul 21 '24
ooooh yee i know about that one (tho i don't work with Rust and dont exactly intend to do so anytime soon) i've actually heard about some ppl doing similar things in C++ and obv variants of that have been around since forever (think traditional C error codes).
i'ts probably fair to assume that you've also read my rather unfavorable take on those shenigans.