3 ms·
Rust also supports (forward-jumping) GOTOs with blocks! 'asdf: { do_tasks(); if condition { break 'asdf } do_more_tasks(); /
by bennettnate5 4y ago
Rust also supports (forward-jumping) GOTOs with blocks!
'asdf:
{
do_tasks();
if condition {
break 'asdf
}
do_more_tasks();
// ...
}
tasks_after_jump();