groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Stewart <>
Subject Parsing slashy string as method argument
Date Thu, 19 Oct 2017 16:34:16 GMT
Hello, all,

I do a fair amount of work in Groovy DSLs, and one thing I consistently run
into is trying to call a method with a slashy string as an argument,
without parentheses around the method call. Example:

// this does not work:
println /foo/

// this does work, as expected:
println 'foo'

Is there a historical reason slashy strings cannot be handled this way? I
am wondering if this is something that might be handled with the new parser.


View raw message