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

Related issues

oleg-kachan picture oleg-kachan  Â·  3Comments

lobotony picture lobotony  Â·  3Comments

choleraehyq picture choleraehyq  Â·  3Comments

aurora picture aurora  Â·  3Comments

medvednikov picture medvednikov  Â·  3Comments