PHP goto Isn't Evil: One Less Nesting Level for Retry Logic
3d ago · 4 min read · 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...
Join discussion

























