4 ms·
>there are a whole class of bugs that I don't need to test for any more because I can't even write the failing case. By adding sanity checking asserts in a dyn
by crdoconnor 9y ago
>there are a whole class of bugs that I don't need to test for any more because I can't even write the failing case.
By adding sanity checking asserts in a dynamically typed language you can achieve more or less the same result.
- wstrange 9y agoIf you are going to add a bunch of asserts, why not just use types?
- crdoconnor 9y agoI don't particularly see the need to extend this approach to every single variable in my code base. I usually just stick it on boundary code.