Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default

2019-10-30 Thread Milles, Eric (TR Tech, Content & Ops)
Are you proposing to add this to CompilerConfiguration.DEFAULT or somewhere else?

Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default

2019-10-30 Thread Daniel.Sun
Hi Guillaume, Here is the idea in my mind, i.e. we can configure the CompilerConfiguration instance to add default imports ;-) ``` def config = new CompilerConfiguration() def imports = new ImportCustomizer() imports.addImports( 'groovy.transform.TypeC

Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default

2019-10-28 Thread MG
- *From:* Daniel.Sun mailto:sun...@apache.org>> *Sent:* Sunday, October 27, 2019 9:39 PM *To:* d...@groovy.incubator.apache.org <mailto:d...@groovy.incubator.apache.org> mailto:d...@groovy.incubator.apache.org>> *Subject:* Re: [GEP] Import `TypeChecke

Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default

2019-10-28 Thread MG
Greoovy 3.0, yes, but surely there will be a Groovy 3.1 ?-) On 28/10/2019 03:39, Daniel.Sun wrote: Hi mg, Groovy 3 is already in RC phase, so its features are frozen. New features are targeted to next version. Cheers, Daniel.Sun - Apache Groovy committer & PMC member Blog: http:/

Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default

2019-10-28 Thread Milles, Eric (TR Tech, Content & Ops)
it was quickly removed (commented out). From: Guillaume Laforge Sent: Monday, October 28, 2019 9:57 AM To: Groovy_Developers Subject: Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default Interestingly, historically, we've gone the

Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default

2019-10-28 Thread Guillaume Laforge
ubator.apache.org > *Subject:* Re: [GEP] Import `TypeChecked`, `CompileStatic` and > `CompileDynamic` by default > > Hi mg, > > Groovy 3 is already in RC phase, so its features are frozen. New > features are targeted to next version. > > Cheers, > Daniel.Sun > > >

Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default

2019-10-28 Thread Milles, Eric (TR Tech, Content & Ops)
9 9:39 PM To: d...@groovy.incubator.apache.org Subject: Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default Hi mg, Groovy 3 is already in RC phase, so its features are frozen. New features are targeted to next version. Cheers, Daniel.Sun - Apache Groovy committ

Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default

2019-10-27 Thread Daniel.Sun
Hi mg, Groovy 3 is already in RC phase, so its features are frozen. New features are targeted to next version. Cheers, Daniel.Sun - Apache Groovy committer & PMC member Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f3

Re: [GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default

2019-10-27 Thread MG
HI Daniel, I don't know if this would have any negative side effects/consequences, but purely from a user's perspective this sounds like a good idea  G-) Cheers, mg PS: Why Groovy 4 and not 3 ? On 27/10/2019 11:08, Daniel.Sun wrote: Hi all, As static groovy is widely used, import

[GEP] Import `TypeChecked`, `CompileStatic` and `CompileDynamic` by default

2019-10-27 Thread Daniel.Sun
Hi all, As static groovy is widely used, importing `groovy.transform.TypeChecked`, `groovy.transform.CompileStatic` and `groovy.transform.CompileDynamic` again and again makes user experience not very good. So I propose to import the classes by default. For example, After GEP accepted: ``