Skip to content

Improve console variable expansion #1370

Closed

Description

@paulk-asert

Currently a few different variations for variable expansion are supported. As per the doco:

groovy-repl> user = [name:'Pippo',age:10]
groovy-repl> prnt $user
name Pippo
age  10
groovy-repl> prnt ${user}.name
Pippo

With very little effort, more sophisticated expansion could be supported:

groovy-repl> prnt ${user.name}
Pippo
groovy-repl> prnt ${user.name[-1].toUpperCase() * user.age}
OOOOOOOOOO

Activity

  1. added a commit that references this issue on Aug 6, 2025
  2. paulk-asert commented on Aug 12, 2025

    @paulk-asert
    ContributorAuthor

    Related PR merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions