3 ms·
The fact that you originally swapped /f/ and /g/ in your comment then edited it to fix there mistake is perfect example of why this is a dangerous and bug prone
by tantalor 4y ago
The fact that you originally swapped /f/ and /g/ in your comment then edited it to fix there mistake is perfect example of why this is a dangerous and bug prone approach to writing programs.
- mjburgess 4y agoStrange take -- the whole basis of FP is dangerous and bug-prone? Unlike the imperative `;`, which sequences commands in an absolutely obvious way, right?
- nine_k 4y agoIt's just f and g being poor names, also on keys next to each other. The circle is a good symbol for a whiteboard, but it's a poor identifier. Normally you write composition like readFile().then(stripComments).then(sort).then(takeFirst), or compose using shell pipes. Composition is so widespread and so trivial-looking that it's even easy to miss.