Re: [apache/groovy] GROOVY-9296: [GEP] Import `TypeChecked`, `CompileStatic` and `Compile… (#1056)

2019-10-31 Thread Guillaume Laforge
Hmm, I wouldn't commit that straight away, Daniel. I'd also like to have Paul's thoughts on this. There's also some past conversations on this topic, existing issues (like GROOVY-5503 ). It's already to set flags in different ways to enable that (c

Re: [apache/groovy] GROOVY-9296: [GEP] Import `TypeChecked`, `CompileStatic` and `Compile… (#1056)

2019-10-31 Thread Guillaume Laforge
It's certainly a common request, that said, for example I just found a question on Stackoverflow here: https://stackoverflow.com/questions/11866901/is-there-any-global-flag-for-groovy-static-compilation This one shows how to do that with Gradle. Guillaume On Thu, Oct 31, 2019 at 10:06 AM Guillaum

Re: [apache/groovy] GROOVY-9296: [GEP] Import `TypeChecked`, `CompileStatic` and `Compile… (#1056)

2019-10-31 Thread Daniel.Sun
Hi Guillaume, The proposal is to use `@TypeChecked`, `@CompileStatic` and `@CompileDynamic` conveniently. Though we can enable STC via config script or flags, the solutions can not 100% cover the use cases of the proposal. Anyway, no worries. It's just a proposal. If the proposal can not get +1 P