I think the answer depends on if the partial that you get after applying N first arguments is useful or not. If you can make a partial and then reuse it a few times, then the order is right. If you don't intend to reuse the partial, the order does not matter.
Therefore in the take example we would want to create partials defined with a number? So we can use this on multiple lists? Or should we do the opposite, so that we can vary the number of items we take from a specific list? Therefore I agree with your statement unless both behaviors are useful, then currying is flawed. I think currying could be enhanced with types i.e array and int as arguments, then you could pass them in any order. Which would allow for both behaviors.
We need these code walks back!!
I think the answer depends on if the partial that you get after applying N first arguments is useful or not. If you can make a partial and then reuse it a few times, then the order is right. If you don't intend to reuse the partial, the order does not matter.
Therefore in the take example we would want to create partials defined with a number? So we can use this on multiple lists? Or should we do the opposite, so that we can vary the number of items we take from a specific list? Therefore I agree with your statement unless both behaviors are useful, then currying is flawed. I think currying could be enhanced with types i.e array and int as arguments, then you could pass them in any order. Which would allow for both behaviors.
thank you, a really useful information as always
Do you happen to have a spotify podcast or something for these code walks @christopher?
Would be perfect
Did you shoot this footage in Germany? The traffic signs and the buses look like it
Sweden. So not a bad guess :)
Solve that problem is to use a function that reverse the order of arguments, and then currying that function.
Hey Christopher, do you ever have followers on your code walks? Like, people walking behind you and listening what you have to say? :)
Hahahha that would be super creepy 😁😁😁 Thanks for watching :)