2 ms·
Huh? Almost always the parameter order is "the type of the module first" (except builders bla bla). This is super easy to remember, and this convention also e
by dnautics 6y ago
Huh? Almost always the parameter order is "the type of the module first" (except builders bla bla). This is super easy to remember, and this convention also encourages good code organization and module naming.
The only place where pipe order bristles is Enum.reduce, but I'd bet if I counted I'd have wanted it the normal way more often than the backwards way.
- sodapopcan 6y agoI just gave reduce as an example in my response without reading yours first. Can you explain why it would be more desirable to have it last in reduce? I have never felt this pain though, again, don't come from a functional background.
- dnautics 6y agoThe easiest way to say it is: often you want to apply a list of actions to an object. This is a "backward reduce". I don't feel it often, but when I do, it's such a bummer.