Quick question, since I just came across that again in Groovy 2.4: Will Groovy 3.0 support passing multiline lists/maps to a method without surrounding it with brackets ?

E.g.

def foo(List l) { ... }

could be called giving

final result = foo [
     "some rather long literal string argument",
    "another long literal string argument",
    "and so on and so forth (not the language)",
]

instead of

final result = foo ([
     "some rather long literal string argument",
    "another long literal string argument",
    "and so on and so forth (not the language)",
])



Reply via email to