3 ms·
> I've noticed that when control flow is abstracted away at runtime for flexibility of future changes just in case we need to handle other cases in the future,
by lmm 3y ago
> I've noticed that when control flow is abstracted away at runtime for flexibility of future changes just in case we need to handle other cases in the future, the code starts to become difficult to reason about.
Control flow is a big thing to watch for. IME an abstraction that's defined in terms of plain functions and values, and lets you use your own control flow, is often a good one; one that requires you to supply a bunch of callbacks and let it take over the control flow is often a bad one.