Re:AI Found a Bug in My Code
by ColonelPhantom on Friday November 18, 2022 @03:32AM
(#33651927)
You missed the point; an if or for is a single token. The problem is with predictable token sequences, and if you write the same for loop (or extremely similar ones) in multiple places then yes, it should be turned into a function.
[ Parent
| on HN ]
There are no comments on this comment yet.