3 ms·
I think the point is that if that was written in JS you would have a test to ensure your method behaves correctly with characters passed in, or strings, or just
by maccard 7y ago
I think the point is that if that was written in JS you would have a test to ensure your method behaves correctly with characters passed in, or strings, or just nil(/nul?) Whereas in Java et Al, you don't need any of those tests, you just make your parameter some sort of numeric and that just isn't a problem any more.