Re: Java raw string literals

2018-02-24 Thread Paolo Di Tommaso
Hi, It's true that's still a draft proposal, but considering the new fast Java release train I think it's worth to start to think about. Then, yes, Groovy has a plenty of string syntaxes single and double triple quote, slashy strings, slashy dollar strings, etc. However the main difference of th

Re: Java raw string literals

2018-02-24 Thread Daniel Sun
> the main difference of the new Java proposal is that the Raw string literals do not perform any escape of special characters e.g. `hello\nworld` would *not* contain a new-line character but exactly back-slash followed by a `n`. OK. We should avoid escaping too in Groovy. I wonder whether raw s

Re: Java raw string literals

2018-02-24 Thread Paolo Di Tommaso
The proposal mention double back-ticks for a string containing a back-tick, eg ``can`t`` // a string containing 'c', 'a', 'n', '`' and 't' See http://openjdk.java.net/jeps/8196004 Also they are collecting users feedback, have a look at this link . p

Re: Thread contention on GroovyClassLoader sourceCache

2018-02-24 Thread Jochen Theodorou
On 24.02.2018 07:14, Daniel Sun wrote: Hi Jochen, As a Groovy user, I prefer higher level API, e.g. `GroovyShell`, `GroovyClassLoader` ;-) This kind of functionality can be in a higher API of course, but I think GCL needs to be split instead of having another "mode". I think GroovyShel

[VOTE] Release Apache Groovy 2.4.14

2018-02-24 Thread Paul King
Dear development community, I am happy to start the VOTE thread for a Groovy 2.4.14 release! This release includes 14 bug fixes/improvements as outlined in the changelog: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123&version=12342217 Tag: https://git1-us-west.apache.o

Re: [RESULT][VOTE] Release Groovy 2.5.0-beta-3

2018-02-24 Thread Paul King
Looks like there was a minor glitch with pushing to artifactory/central. This is the first release since the build was overhauled and, as far as I can tell, nearly[*] everything else went smoothly. The groovy-all pom is missing. In fact the whole directory is missing, so there is hope we can just p

Re: Thread contention on GroovyClassLoader sourceCache

2018-02-24 Thread mg
Suggestion: GroovyScriptCompiler o.s., and add comment in GCL documentation "If you want concurrency performance, ... to compile Groovy scripts in your application, use GroovyScriptCompiler."Make GCL functionality private, or at least add the same comment there. Rationale: From what I have read

Re: [VOTE] Release Apache Groovy 2.4.14

2018-02-24 Thread Guillaume Laforge
Hi Paul, Same tests as usual. Downloaded, built from source, ran a few scripts without any problem. Everything fine on my side. +1 (binding) Guillaume On Sat, Feb 24, 2018 at 12:46 PM, Paul King wrote: > > Dear development community, > > I am happy to start the VOTE thread for a Groovy 2.4.1

Re: [VOTE] Release Apache Groovy 2.4.14

2018-02-24 Thread Daniel.Sun
+1 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Java raw string literals

2018-02-24 Thread Daniel.Sun
Double backticks look a bit ugly IMO... I prefer the same way to escape, i.e. use \ to escape. Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Re: Java raw string literals

2018-02-24 Thread MG
In the absensce of a dedicated string-quoting-character (which would actually _never_ appear inside a string, since it has a distinct display-brother, which is to be used if you want to use the string-quoting-character inside a text), should we go the same way as C++ or PL/SQL, and support an a