Choose the least capable feature/tool/pattern/etc. suitable for a given purpose. This optimizes for the capability/tractability tradeoff: the more things you can do with something, the harder it is to reason about.
Using a less capable thing gives you more tractable thing. Map is less capable than foreach, but that means you know map won’t change the length of a list. Immutable data can do less than mutable data but you’re guaranteed to have the same value.
Josh Beckman
Widgets
Comments & Replies
You can subscribe or follow or reply here: