Ticket #40357

CLI toggle trace.

오픈 날짜: 2020-04-25 10:30 마지막 업데이트: 2020-04-29 07:39

Reporter:
소유자:
Status:
Closed
Component:
MileStone:
Priority:
2
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

Right now the CLI REPL always prints the trace of the evaluation.

It would be nice to have a function that toggles that on and off. It would be a "meta-function" in the sense that there's no representation in Joy of the interpreter. We're introducing state in the interpreter that isn't in the stack or expression. From the POV of semantics this toggle function is an identity function (or no-op.)

Ticket History (3/3 Histories)

2020-04-25 10:30 Updated by: sforman
  • New Ticket "CLI toggle trace." created
2020-04-29 03:18 Updated by: sforman
댓글 올리기

One possibility is a "tracing" i combinator that works just like i but prints the trace as a side-effect. There could be a combinator that returns the history of the eval, instead of just the result?

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login