Re:Are dynamic languages going to replace static languages? ...
by camdenreslink on Wednesday August 04, 2021 @11:13AM
(#28061944)
It’s possible that the code was modified in a way that bypasses the null-check. It isn’t necessarily true that anybody removed code.
Unit tests that test the contract of a method (if you put in this argument, then you’ll get this return or side effect) are a good idea in both dynamic and static languages.
Unit tests that test the contract of a method (if you put in this argument, then you’ll get this return or side effect) are a good idea in both dynamic and static languages.