Re:A Tour of Lisps
by ctrw on Tuesday January 30, 2024 @08:13PM
(#39198427)
Sure, the issue is that most loops are farily simple and putting the logic in the middle of a function far away from the iteration is bad.
It's the same reason why I use let instead of a function when I want to encapsulate simple state across multiple statements. Sure they are both the same fundamentally, but one is much easier to reason about.
It's the same reason why I use let instead of a function when I want to encapsulate simple state across multiple statements. Sure they are both the same fundamentally, but one is much easier to reason about.