4 ms·
I think that we just gave up on it. Another thing that I remember being really annoying is that there was no easy way to break out of iterating closures other t
by pyre 15y ago
I think that we just gave up on it. Another thing that I remember being really annoying is that there was no easy way to break out of iterating closures other than to throw an exception. I ended up writing a "BreakClosure" exception specifically for this. (The return value of the closure goes nowhere, and breaking out of one closure just causes the next iteration to run.)
- mgkimsal 15y agoAgreed on breaking - hadn't thought of that approach. I'm used to 'continue/break' from PHP, so reworking the iteration loops to check if the loop should run is annoying. :/ Maybe I'll try your exceptional approach too.
- deleted 15y ago[deleted]