3 ms·
The small increase in cognitive load when writing the code pays off when reading it. My editor can tell me where a function is used. It can't tell me what a fun
by pseudalopex 9y ago
The small increase in cognitive load when writing the code pays off when reading it. My editor can tell me where a function is used. It can't tell me what a function does.
- xapata 9y agoAnd with anonymous functions, your traceback often hasn't a clue where the function was defined.
- KirinDave 9y agoThat's untrue. That's usually the least interesting part of the stack trace, but the easiest to compute. But your complaint isn't without merit here, a profusion of unique nameless verbs can get overbearing sometimes. It's often better than the alternatives (e.g., dependency injection vs lambdas in an environment) but Haskell, ocaml and lisps all seek to have a small but very robust set of combiner and base primitives to help make this kind of code avoid a complexity explosion similar to OO ontology explosions.