4 ms·
That sounds like your code just isn't properly typed. For example in Rust the first bug would be caught by `Range` vs `RangeInclusive`. The second bug would t
by IshKebab 3y ago
That sounds like your code just isn't properly typed.
For example in Rust the first bug would be caught by `Range` vs `RangeInclusive`.
The second bug would trivially be caught because dates and timestamps are different types.
The third is trickier, but (depending on exactly what you mean) that can be caught with static types too.
Pointing your finger in the wrong place IMO. If anything this refactoring highlighted worrying inconsistencies in your code that probably would have cropped up as bugs elsewhere.