Why not? The linked Expression section (more specifically, the Expression *rule*) defines the format of expressions. An expression statement allows you to use any expression also as a statement; this is important, because it means you can, e.g. write fmt.Println("foobar") as an expression (without needing an assignment or the like).
On Sun, Jan 14, 2018 at 4:07 PM, dg <d...@veryhaha.com> wrote: > In this section, it shows > > ExpressionStmt = Expression <https://golang.org/ref/spec#Expression> . > > However, it looks the content in this section has nothing related to the > linked Expression section. > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.