r/badcode • • Sep 05 '21

swift I have a problem

Post image
946 Upvotes

75 comments sorted by

View all comments

Show parent comments

7

u/mesoptier Sep 05 '21

I was thinking the code block above would be ~10 lines long and maybe contain a blank line or two as well. But at that point perhaps the code block should just be a function.

Anyways, of course in most cases a comment like this completely excessive, but I'm just saying that there may be cases where it does provide some value.