44 ms·
This seems like another mental trick to me. "Yeah, the function did not produce a different output. It just behaved different by throwing an exception." Still
by JonathanBeuys 5y ago
This seems like another mental trick to me.
"Yeah, the function did not produce a different output. It just behaved different by throwing an exception."
Still, some other code will read (or "interpret") this behavior and then behave accordingly etc. So what is won here?
- ghostwriter 5y agoNix doesn't allow for recovering from errors
- garethrowlands 5y agoIt's a good trick. The function didn't return a value, so its caller cannot interpret that value and cannot change it behaviour.