[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: A challenge: make an online Lua tutorial
- From: David Manura <dm.lua@...>
- Date: Wed, 5 Oct 2011 23:12:56 -0400
On Wed, Oct 5, 2011 at 9:40 AM, Fabio Mascarenhas <firstname.lastname@example.org> wrote:
> There is another Lua REPL, together with a definitions area for
> writing and evaluating bigger scripts, at http://repl.it.
On Wed, Oct 5, 2011 at 10:11 AM, Alexander Gladysh <email@example.com> wrote:
> The Examples section is interactive, so you can play further with
> objects that were created in the original example.
If you've tried DrRacket (formerly DrScheme), they take a similar
approach of having a definitions area that is separate from the REPL.
"DrScheme provides and enforces this batch-oriented style of
evaluation in a natural way. When the programmer is ready to test a program,
a click on the Execute button submits the program to the interactions window.
When the programmer clicks on Execute, the repl is set to its initial
state and the
text from the definitions window is evaluated in the fresh
environment. Thus, the
repl namespace exactly reflects the program in the definitions window. Next, the
programmer evaluates test expressions in the repl [...]"