Hi Mr. Bushnell, The code block identifier, in Go are { }. They are already part of the syntax if I'm not mistaken. Go proudly aiming to be a simplifying, lowest common denominator language makes sense to me. In that sense, the { signs tightly bound to declarations and control statements is redundant. In go { identifies a beginning of a code block, except where you have control statements of declarations.
It could be reasonably argued that this is redundant, and therefore not common lowest denominator. On Mon, Jul 31, 2017 at 4:48 PM, Thomas Bushnell, BSG <tbushn...@google.com> wrote: > On Sat, Jul 29, 2017 at 10:36 AM <ecstatic.co...@gmail.com> wrote: > >> >> But as Gofmt can ALREADY enforces this common coding style, and can be >> run at any time, including before committing code on the depots, why should >> it be enforced by the COMPILER too ? >> > > The compiler does not enforce the use of gofmt. > > What you're complaining about is that the syntax of the language does not > permit a particular thing which the syntax of C does. It also doesn't > permit "a = b++" and many other things which C does. > > Thomas > > -- 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.