2 ms·
No one would implement this in a real productive project. This is for explanatory reasons only, and aimed at people already familiar with combinatorial logic.
by maze-le 9y ago
No one would implement this in a real productive project. This is for explanatory reasons only, and aimed at people already familiar with combinatorial logic.
>> I think programming in general, and FP in particular, will become a better place if we all grow up a bit and stop pretending we're too smart to need good naming.
I with you on this, but I think this is a bad example.
And while we are at it, documentation matters as well. The 'good code is the best documentation' attitude[ * ] might be valid if your methods consist of 3 lines and you use 6 methods in 5 modules. But anything bigger will become hard to maintain in the long run.
[ * ]: I encountered this especially in the haskell and erlang world.
- Kequc 9y ago> No one would implement this in a real productive project. Oh my word. If it's code on the internet someone will use it. Especially functional programmers who have somehow landed themselves in a JavaScript position. I've seen much stranger code pulled off the internet and used in production applications by professionals. That's why it's important to generally publish the best code possible whenever we can.
- dmitriid 9y ago> Especially functional programmers who have somehow landed themselves in a JavaScript position. Or Haskell programmers who have somehow landed themselves in any position. I've seen Haskell implemented in Erlang :)