Ticket #40357

CLI toggle trace.

Eröffnet am: 2020-04-25 10:30 Letztes Update: 2020-04-29 07:39

Auswertung:
Verantwortlicher:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
2
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
Keine

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-Verlauf (3/3 Historien)

2020-04-25 10:30 Aktualisiert von: sforman
  • New Ticket "CLI toggle trace." created
2020-04-29 03:18 Aktualisiert von: sforman
Kommentar

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?

Dateianhangliste

Keine Anhänge

Bearbeiten

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