Re: groovy git commit: Increase the possible size of value in GString instance

2018-01-25 Thread Jochen Theodorou
On 25.01.2018 07:32, sun...@apache.org wrote: Repository: groovy Updated Branches: refs/heads/master 031fc238f -> 7be5f2f82 Increase the possible size of value in GString instance [...] -initialCapacity += values.length * Math.max(initialCapacity / strings.length, 1); +ini

Re: Making @Immutable a meta-annotation

2018-01-25 Thread MG
m:-)g On 24.01.2018 04:39, Paul King wrote: Okay, I made those changes. There is now a makeImmutable annotation attribute. Still a bunch of tidying up work to do including documentation refinements but any feedback welcome. cheers, Paul. On Sat, Jan 20, 2018 at 10:03 AM, MG

Re: Add a marker interface to bypass Collections and Maps formatting

2018-01-25 Thread MG
This looks like something that might be useful in certain scenarios. A "perfect fix" would always be better, but since that might be some time off (2019 being optimistic - some of the things I want Groovy to improve in date back to at least 2006)... My only question would be, if it would perha

Re: groovy git commit: Increase the possible size of value in GString instance

2018-01-25 Thread Daniel Sun
Hi Jochen, Let's have a look at some normal examples: `println "Hello, ${name}"` // length of "Jochen" is 6, length of "Daniel" is 6 too `println "Path: ${path}"` // the length of some file location is usually more than 8, e.g. D:\workspace\groovy ``` ${includedBody} // the leng