News for hackers. Stuff that matters.
Re:Yarn's Future – v2 and beyond by amikazmi on Thursday January 24, 2019 @02:40PM (#18992156)
1. If you dob't have tests covering code, sure type checks are better than nothing. but if you do, why do you also need type checks?

2. If the tests must be updated whenever the underlying implementation changes it might be testing too much- it's better to test behaviour, not implementation.

Re:Yarn's Future – v2 and beyond by eyelidlessness on Thursday January 24, 2019 @02:56PM (#18992312)
I was addressing the above comments about tests that specifically check types. My position is that declarative types and a type checker are better because each code path is checked automatically without writing additional tests, and because the type checker automatically adapts without changing or writing new tests when the implementation changes. Testing behavior is another thing entirely.