#control-flow

[ follow ]
JavaScript
fromSubstack
1 day ago

Why JavaScript forEach Cannot Be Interrupted

forEach cannot be interrupted with break, continue, or early return because it executes a callback function rather than exposing loop-level control flow.
#python
Python
fromHackernoon
5 months ago

Loops, Conditionals & AutoGraph: Writing Graph-Friendly TensorFlow Code | HackerNoon

AutoGraph simplifies Python code for TensorFlow, enabling easier control flow.
Scala
fromMedium
5 months ago

Exceptions are not free

Using exceptions for control flow can degrade performance due to stack trace generation.
[ Load more ]