In csh-influenced shells, you have access to the command history in a
way that lets you say "insert the third argument from the fourth
previous command here".  In Lisp, you have the * variables with the
result of recent exppressions  I think both of these capabilities are
very valuable in an interactive programming environment.  Anything
like that planned for Perl6?

I'm envisioning a global variable like @HISTORY, where either
@HISTORY[0] or @HISTORY[*] would be the most recent command,
@HISTORY[1] or @HISTORY[*-1] the next, etc, and each entry would be an
object containing both the expression evaluated and the result of that
expression...

Without bikeshedding the details, does this seem like something worth
including in the language, or something that would better be provided
by a tool external to the language itself?

-- 
Mark J. Reed <markjr...@gmail.com>

Reply via email to