#control-flow

[ follow ]
fromMedium
2 weeks ago

Exceptions are not free

Creating exceptions can quietly hurt your performance. Many use exceptions as a control flow tool, which helps keep the happy path clean and move error handling where it fits better.
Scala
fromRealpython
1 month ago

How to Exit Loops Early With the Python Break Keyword - Real Python

In Python, the break statement lets you exit a loop prematurely, transferring control to the code that follows the loop.
Video games
[ Load more ]