5 ms·
Like setjmp()/longjmp() and signal(), very explicit. /s
by pjmlp 10mo ago
Like setjmp()/longjmp() and signal(), very explicit. /s
- rramadass 10mo agoThe control flow is explicit; there is no language "magic" here. Non-local gotos in the former case and asynchronous callbacks from the OS in the latter case are pretty well known.
- pjmlp 10mo agoExcept knowing where the jump lands, very explicit.
- rramadass 10mo agoThese are low-level api and hence if you know the caveats to follow, then using them correctly is not difficult; Eg. keep the context of the function calling setjmp active, don't use jmp_bufs allocated on a stack etc. Not knowing how to do something is the fault of the programmer and not the language/tool.