2 ms·
I don't find these analogies compelling at all: > whip /f/ the butter /x/, then whip the result while adding sugar /y/ That's not a valid explanation, since c
by chriswarbo 4y ago
I don't find these analogies compelling at all:
> whip /f/ the butter /x/, then whip the result while adding sugar /y/
That's not a valid explanation, since curried functions don't "act" until they've got all their arguments; i.e. we do not whip any butter until the sugar has been added.
> shape the cookies /x/ on a tray first /g/, then bake them /f/
Whilst this is accurrate, I think introducing a notion of time ("then") makes things much harder than they need to be. (That's one reason I find imperative programs hard to understand)