3 ms·
> Is it really such a big deal to rewrite your function to use a loop? My problem with that is I don't know how to do something as simple as a summation, witho
by mrkeen 2y ago
> Is it really such a big deal to rewrite your function to use a loop?
My problem with that is I don't know how to do something as simple as a summation, without first writing down the wrong answer, and then iteratively overwriting it until it's the right answer.
How does that gel with maximally debuggable? I'm gonna see sum=0 while stepping through. That violates some invariant right? Nah, I'll just keep stepping and maybe it'll be the right number later.