Re:Dependency Injection is a Virtue
by molf on Monday January 07, 2013 @05:04AM
(#5020285)
Perhaps so, but the call to `update` makes this function impure even if `time` is an argument.
[ Parent
| on HN ]
I still agree with the general point about valuable insights from FP. Perhaps the one applicable here is: impure functions can still make for testable and clean code as long as they are explicitly so.