PHP goto Isn't Evil: One Less Nesting Level for Retry Logic
Originally published at recca0120.github.io
The first instinct for retry logic is usually while (true). It works, but the try/catch ends up nested inside the loop, adding an extra indent level and burying the intent slightly.
PHP has goto, and most p...
recca0120.hashnode.dev4 min read