On Wed, Feb 04, 2009 at 01:52:17PM -0500, Mark J. Reed wrote: > 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?
Sounds usefulish for the perl 6 REPL. But not so much for "ordinary" programming. So, given that, I'd say an external tool (module) is the way to go. -Scott -- Jonathan Scott Duff d...@lighthouse.tamucc.edu