AI API 3/9: better control flow and binding #157

Open
opened 2026-10-02 20:07:39 +00:00 by Winnie · 0 comments
Owner

The brains are written in a very manual recursive style. Add:

  • let*, named let, local define
  • for, while, foreach, break, continue, return
  • optional arguments, keyword arguments, default values
  • variadic functions
  • early exits without deeply nested cond

For example, scan-book should be a filter/fold, not a hand-written recursive walk. Acceptance: shipped brains' recursive walkers are rewritten with the new forms where they're clearer.

The brains are written in a very manual recursive style. Add: - let*, named let, local define - for, while, foreach, break, continue, return - optional arguments, keyword arguments, default values - variadic functions - early exits without deeply nested cond For example, scan-book should be a filter/fold, not a hand-written recursive walk. Acceptance: shipped brains' recursive walkers are rewritten with the new forms where they're clearer.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Winnie/bankwars#157
No description provided.