r/ProgrammerHumor • • Sep 28 '16

xkcd: Fixing Problems

http://xkcd.com/1739/
7.9k Upvotes

215 comments sorted by

View all comments

11

u/manwith4names Sep 28 '16 edited Sep 28 '16
function fixError(err, count) {
    return fixError(err + count, ++count);
}

-1

u/endershadow98 Sep 28 '16

But if error is 0 or count is less than or equal to zero you'll never have any errors. You need to specify that there is always at least 1 error

→ More replies (5)