Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
shawn_w
· 2y ago · 0 comments
And then there's Scheme, where there are no iterative loops; all looping is done with recursion. You can build pretty much everything other languages do with loops on top of that, though.
Comments
[–]
groovy2shoes
2y ago
Not true. Scheme has `do`. See R7RS section 4.2.4 "Iteration".
[–]
shawn_w
OP
2y ago
Scheme's `do` is implemented using recursion. There's a sample macro for it in 7.3.