Re:Why We Use OCaml
by lostcolony on Wednesday July 16, 2014 @03:43PM
(#8044071)
I could also have done (provided I just needed side effects, not values) -
to achieve the same effect, depending on how I want the interface to behave. I could also keep all existing calls working if my language supports multiple function arities, with
or similar. The thing that closures give you, that I love, is that utility. I can minimally touch a function to inject entire chunks of functionality, without having to do major re-architecturing.
[ Parent
| on HN ]
There are no comments on this comment yet.