for-else and while-else · Issue #1289 · JuliaLang/julia

Allow and else clause on for and while loops that executes if the loop never executes.