Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
ColonelPhantom
· 4y ago · 0 comments
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.
Comments
No comments yet.
Better HN