Quote:
Originally Posted by Thomas Richter
A typical use case is strlen:
|
Yep, and languages can keep count during string operations - this avoids running this counting loop even once
(strlen simply loads the count attached to the string and returns.)
It would be actually be interesting with similar cases where a chunk of code can be completely omitted by planning ahead!