Re:Destroy All Ifs – A Perspective from Functional Programming
by dwb on Saturday July 16, 2016 @05:34PM
(#12107960)
A library can very easily provide, along with the kit components, convenience functions that perform common tasks - like matchCaseInsensitive or whatever. The point I took from the post is that, regardless of how the final public API is presented (and indeed, hopefully it doesn't involve piecing together umpteen bits), the code implementing it can be written by composing simple components rather than unwieldy conditionals.
[ Parent
| on HN ]
There are no comments on this comment yet.