~technomancy/fennel#138: 
REPL should have access to results from previous expressions

Clojure has *1, *2, & *3. Common Lisp & Racket (w/ xrepl) have similar. IIRC, IPython & irb keep a list of all outputs in the current session. With readline it is certainly possible to retrieve the previous expression & wrap it with code to save the result to a variable, but something like *1 is much simpler when experimenting in the REPL.

My apologies if Fennel's REPL already has something like this. I couldn't find it. :)

Status
REPORTED
Submitter
Jonathan D Johnston
Assigned to
No-one
Submitted
10 months ago
Updated
9 months ago
Labels
enhancement

~technomancy 9 months ago

Seems reasonable. We could inject these with the same mechanism we use to inject repl locals.

Happy to take a patch if anyone wants to give this a shot.

Register here or Log in to comment, or comment via email.