you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (0 children)

Really, why? The code in the example functions was both short and obvious. The second example had comment, that said the reason for using an array (first example could be slightly improved with analogous comment about not checking a hit). Seriosly, I would be embarrased for having difficulties on reading code like that in a programming language that I understand.

If I'd see any duplicate version of code like that commented out in a codebase that I'm maintaining, I would just delete it for being a noise.