Hacker News new | ask | show | jobs
by 6gvONxR4sf7o 1468 days ago
Replacing a stack of function calls with a loop may be the same in terms of what happens, but it’s the like inlining code in general. Sometimes packaging it up makes it cleaner and more reusable and testable, relative to inlining it (or sticking it in a for loop).