|(require unstable/sandbox)||package: racket-doc|
log-file : path-string? mode : (or/c 'record 'replay)
If mode is 'record, the evaluator records every interaction to log-file, replacing log-file if it already exists. The result of each interaction must be serializable.
If mode is 'replay, the evaluator uses the contents of log-file instead of actually performing evaluatings. For each interaction, it compares the term to evaluate against the next interaction recorded in log-file. If the term matches, the stored result is returned; if not, the evaluator raises an error indicating that it is out of sync with log-file.
Use make-log-based-eval to document libraries when the embedded examples rely on external features that may not be present or appropriately configured on all machines.