Re:Common combinators in JavaScript
by ams6110 on Tuesday February 20, 2018 @09:23AM
(#16420459)
Why do equations use single-letter variables? Or those weird greek symbols? Because they are concise, and their use is so localized that you don't need long names to keep track of them.
[ Parent
| on HN ]
I agree, and I think the use of single letters is appropriate here, but "concise" is not a good enough reason to use short variable names when you're writing code for other people to consume.
In this case, I'd say it's not about being concise, but rather matching the mathematical notation that people are used to seeing when studying these combinators.