|
|
|
|
|
by angersock
4155 days ago
|
|
So, I see what you're saying, but I maintain that without first-order functions, you can't do anything useful with code organization. If you wanted to simulate that, imagine writing in C or C++ or Javascript using only functions, only returning copies of things changed by the function, and never referencing global state. There's nothing particularly magic about that, other than better testability--it's just really slow and obnoxious imperative code. When you start passing around functions and currying values, though, then you're actually starting to see cool things happening. |
|