V: Add support for multiple statements in single line

Created on 23 Oct 2019  Â·  2Comments  Â·  Source: vlang/v

```v
fn main() {
println('...'); println('...')
}

Feature Request

Most helpful comment

The way the parser works, you can already do

    println('...') println('...')

In the future, a semicolon will be introduced for this, but it will be removed by vfmt anyway, like in Go.

All 2 comments

oh, separate every statement with space only.

The way the parser works, you can already do

    println('...') println('...')

In the future, a semicolon will be introduced for this, but it will be removed by vfmt anyway, like in Go.

Was this page helpful?
0 / 5 - 0 ratings