5 ms·
Passing around functions that have already been partially applied means that downstream users can't incorrectly call or accidentally modify the arguments which
by __jem 3y ago
Passing around functions that have already been partially applied means that downstream users can't incorrectly call or accidentally modify the arguments which have already been applied. Whether this actually results in more safety is unclear, as there are other language features or API design that accomplishes the same thing.
- mattsan 3y agoYeah I would think that downstream users would just expect a function that only takes in the params that they specify - leave it up to the API user to just make a closure on the spot.