Re:C/C++ vs. Rust Performance
by pirocks on Monday November 02, 2020 @12:44AM
(#24965096)
A static function in Java is essentially just a function. Also I have no idea what functions being associated with classes has to do with breaking out of loops.
[ Parent
| on HN ]
encapsulate your nested loops in a function and return to exit multiple loops at the same time. Having nested lightweight functions allows minimal syntactical overhead compared to plain loops, although still not zero.