Added passage about maybe automagically looping
This commit is contained in:
parent
10ba6bd9d2
commit
6d305d416b
1 changed files with 4 additions and 0 deletions
|
@ -98,6 +98,8 @@ Replace that cons with stream-cons and you have a lazy construct.
|
|||
;; => (1 3 5) (2 4)
|
||||
```
|
||||
|
||||
In the presence of subloops, only the loop variables of the innermost loop are exposed to named updates.
|
||||
|
||||
### Exposing loop variables
|
||||
|
||||
The iterator protocol allows exposing the loop variables
|
||||
|
@ -305,6 +307,8 @@ Tests!
|
|||
|
||||
Finish documentation.
|
||||
|
||||
Think long and hard about whether loop should loop even without clauses. Definitely not the case for loops that have an identity (the simple forms), but the general loop clause should probably loop indefinitely.
|
||||
|
||||
Figure out if I can do anything about branching. I would love to remove the body and just have loop clauses. I don't think I can do that without some serious voodoo if I want to keep the current syntax. One idea would be to define all accumulators in the start of the loop, and then bind identifiers using local macros:
|
||||
|
||||
``` scheme
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue