Skip to content

Commit

Permalink
Explain the use of the token in try-rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
axch committed May 23, 2013
1 parent b3998a4 commit 41d2d56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pattern-dispatch.scm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
(if (null? rules)
(fail)
(let ((answer ((car rules) data token)))
;; Distinguish failure from idempotent success
(if (eq? answer token)
(per-rule (cdr rules))
answer))))))
Expand Down

0 comments on commit 41d2d56

Please sign in to comment.