Another case is a method / function that returns a closure, would we allow the syntax:
def m(String x, int y) = { x * y } ? On Wed, Mar 21, 2018 at 3:46 AM, Daniel Sun <realblue...@hotmail.com> wrote: > Hi Cédric, > > If method throws exception, what does your proposed syntax look like? > For example, > > > ``` > def m(String x, Integer y) throws IOException { > readSomeFile(..) > } > ``` > > is equivalent to the following code? > > ``` > def m(String x, Integer y) throws IOException = readSomeFile(..) > ``` > > Cheers, > Daniel.Sun > > > > > -- > Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html > -- Guillaume Laforge Apache Groovy committer & PMC Vice-President Developer Advocate @ Google Cloud Platform Blog: http://glaforge.appspot.com/ Social: @glaforge <http://twitter.com/glaforge> / Google+ <https://plus.google.com/u/0/114130972232398734985/posts>