Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
identity0
5y ago
0 comments
Share
Would you say that an infinite loop has infinite lines of code?
0 comments
default
newest
oldest
yjftsjthsd-h
5y ago
It has infinite instructions, yes. (Well, "unbounded" or "endless", if we're being picky.)
identity0
OP
5y ago
No it doesn’t. It has finite instructions for the loop body, and then one jump instruction for the loop.
j
/
k
navigate · click thread line to collapse