4 ms·
I've thought of adding goto to Sleep. Have you ever looked at the code in the Linux kernel? It's full of gotos. They use goto's to make sure functions have o
by raffi 17y ago
I've thought of adding goto to Sleep. Have you ever looked at the code in the Linux kernel? It's full of gotos. They use goto's to make sure functions have one exit point and to cleanly deal with errors in one spot.
- paulgb 17y agoKernel hackers know presumably what they're doing and use goto only when they have a good reason. Can the same be said of PHP programmers? I'm all for the "don't protect programmers from themselves" philosophy, until I'm the guy who has to use or maintain the code.