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,  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:
```
@CompileStatic
def hello {
    println 'hello'
}
```

Before GEP accepted:
```
import groovy.transform.CompileStatic

@CompileStatic
def hello {
    println 'hello'
}
```

        The target version of the GEP is Groovy 4. Any thoughts?

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-f372993.html


Reply via email to