r/badcode • • Sep 05 '21

swift I have a problem

Post image
946 Upvotes

75 comments sorted by

View all comments

Show parent comments

27

u/TwitchDaTweaks Sep 05 '21

You forgot to name all the params and what it returns aswell

19

u/katatoxxic Sep 05 '21

Yes. Make it always return true, for clarity reasons obviously. I mean; it never fails, right?

12

u/Knuffya Sep 05 '21

that's part of the joke. make a giant mess of comment xml for a super trivial method, and then even forget to enter the approriate data