4 ms·
Sure, that was a longwinded way of agreeing with me that it's a footgun. I have similar experience maintaining VB6 apps. This is still how errors are handled in
by electroly 5y ago
Sure, that was a longwinded way of agreeing with me that it's a footgun. I have similar experience maintaining VB6 apps. This is still how errors are handled in C and Go to this day, and it's error-prone in both languages. Exceptions have proven themselves again and again to be less prone to mistakes than manual checking of error codes.
I really don't think the author understands this, though; the quote I provided was pretty unequivocal. The author makes it pretty clear that he doesn't think there's any other way of using the feature. If he does, he made absolutely no mention of it. It's pretty misleading.