On Wed, Jul 16, 2025 at 6:07 PM Xeno Amess <xenoam...@gmail.com> wrote:

> I see
> https://github.com/apache/groovy/blob/master/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc
>
> and still have several questions...
>
> 1. it said 'Features: No need for *go* command to execute buffer.'
> what be the *go* here mean?
> and what the *go* do with groovy/groovysh?
> I just feel somehow confused.
>

That is a little outdated. In very old versions of groovysh, I believe you
entered commands and then typed "go" to execute them.


> 2. what is *the buffer* mean in this doc...
> (and save/load)
>

The current version (but changing in 5.0.0-beta-2) of Groovysh has the idea
of a buffer where part lines are added until a complete compilable snippet
is obtained. Once the buffer (potentially empty) plus the last entered line
together are compilable, the code is compiled and the buffer reset.


> 3. also another question, I binded several variables, and injected some
> functions, how can I save the whole context, and load it for use when next
> time(something like squeak if you know it)
> I ask as it seems not the same save/load you provided as command...
>

You should check out the new version coming in 5.0.0-beta-2.

Paul.

Reply via email to