On Mon, Sep 5, 2016 at 6:22 PM, Anmol Sethi <an...@aubble.com> wrote: > What seperates a compile and stylistic error? As in, why not make the > non-gofmt style illegal and enforce the gofmt style by the compiler?
Two reasons, I think: 1. It would make the compiler more complicated 2. Because gofmt isn't perfect Sometimes it may be necessary to change the recommended format, and we wouldn't want a simple change to formatting to break existing programs because the compiler will now complain. It also may be appropriate to ignore what gofmt wants you to do on occasion; the Go authors and the community have opinions, but those opinions aren't held by everyone and some people may not want to use gofmt. Why force them too when most people will use it willingly? —Sam -- Sam Whited pub 4096R/54083AE104EA7AD3 -- 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.