On Wed, Apr 24, 2019 at 3:05 AM <lgod...@gmail.com> wrote: > > It sure would be nice if Go syntax allowed programmers to replace > > if ( test) { > ...do sonething > }
That's not how Go's if statement looks. Gofmt will remove the superficial parentheses around 'test'. Wrt the rest of the proposal, today, this is valid code: if test { foo() } { bar() } How would one write the it under the proposal? -- 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.