News for hackers. Stuff that matters.
Re:From dependency injection to dependency rejection by Roboprog on Sunday February 05, 2017 @01:13PM (#13573614)
In case of emergency, break glass :-)

Wrong language, but here is an example of a mechanism to partially apply the trailing arguments, rather than the more customary leading arguments: http://ramdajs.com/docs/#partialRight

And finally, if something in the middle is the thing that needs to be nailed down, you can simply write a one liner function to provide the fixed thing and pass in the rest. (not really PFA any more at that point, but it will get the job done)

There are no comments on this comment yet.