4 ms·
Reminds me of the unescapable loop: while (true) { try { return; } finally { continue; } }
by cousin_it 5y ago
Reminds me of the unescapable loop:
while (true) {
try {
return;
} finally {
continue;
}
}
- moritzwarhier 5y agoNice. :) Looks like a good minimum example to show that the intuitive natural language semantics of try and finally don't work with statements like continue that change control flow.
- paulddraper 5y agoIt works how is i'd expect.
- chrisseaton 5y ago> a good minimum example to show that the intuitive natural language semantics of try and finally don't work with statements like continue I try returning but finally it continues the loop. Literally reads as written?