3 ms·
“Try..catch”—what the hell is that? When I craft my performant error-free code, I only use the finest bug-squasher: On Error Resume Next. No need to wrap anyt
by function_seven 3y ago
“Try..catch”—what the hell is that? When I craft my performant error-free code, I only use the finest bug-squasher:
On Error Resume Next.
No need to wrap anything. You declare it once and cruise to your solution.
- DaiPlusPlus 3y agoFun-fact: if you compile VB.NET code that uses On Error Resume Next it results in output IL that wraps every statement in its own try/catch+swallow block.
- function_seven 3y agoWow. I didn’t know the .NET version still supported that. I remember it from VBA code in Excel and VB6 stuff way back when. I guess if I’m forced to support an “ignore all errors” feature, doing implicit try/catches in the IL is as elegant as it’s gonna get without having to maintain custom IL to support VB of all things. I do kinda miss VB6 though. I wish RAD was still a thing in desktop applications.
- rezonant 3y agoWelp that's horrible, I'll have nightmares about this.
- rezonant 3y agoI have zero doubt there's some kind of VB6 monstrosity living in some car's infotainment system. Complete with a copy of Windows CE to boot.