3 ms·
____ Exceptions are generally considered to not be worth the cost ____ Why is exception handling being added in 2 then? Sure, they're calling it check/handle
by luord 7y ago
____
Exceptions are generally considered to not be worth the cost
____
Why is exception handling being added in 2 then? Sure, they're calling it check/handle instead of try/except(catch) because Go ought to be hip and different but if it moves like a duck and quacks like a duck...
- Carpetsmoker 7y agocheck() and handle() have rather different semantics; it's still just error returns, just with a bit of syntax sugar. It's also just a proposal which received a lot of feedback/criticism, and eventually they decided to go with another try() proposal which ended up being abandoned after criticism. I'm not quite sure what the current status is here. So nothing is "being added" in Go 2 thus far.