groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <realblue...@hotmail.com>
Subject Re: [RFE] Methods as expressions
Date Wed, 21 Mar 2018 02:46:52 GMT
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

Mime
View raw message