3 ms·
It might be more effort, but having tried it I can tell you it's not that much effort. It also has tangible benefits in that it forces you to think through the
by DenisM 17y ago
It might be more effort, but having tried it I can tell you it's not that much effort. It also has tangible benefits in that it forces you to think through the edge conditions, leads to better interface abstractions and reduces fear of making changes. I don't want to turn this into religious thing, but if you never tried this I encourage trying it out at least once.
As to your question, that sounds very much like Haskel. They even have a search engine that lets you search library functions by type signature, and often time you find the right function just based on that.
- fauigerzigerk 17y agoThe problem is that 100% code coverage is not nearly enough. Take this Python function: def f(x, y): return x + y and this test function: def test_f(): assertEqual(2, f(1, 1)) There you go, 100% code coverage. Unfortunately we have covered next to 0% of what could possibly go wrong here.