3 ms·
The code already has that condition variable ('err'), the goto is to avoid execution of code that should not be executed. It's not about avoiding additional sta
by kabdib 13y ago
The code already has that condition variable ('err'), the goto is to avoid execution of code that should not be executed. It's not about avoiding additional stack -- that was probably the last thing on the programmer's mind. The idiom is about error handling.
- beachstartup 13y agoi didn't see that. that makes it even worse. this design is supposed to avoid that extra var.