Re: [go-nuts] compile vs stylistic errors

2016-09-05 Thread Sam Whited
On Mon, Sep 5, 2016 at 6:22 PM, Anmol Sethi 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 perfe

Re: [go-nuts] compile vs stylistic errors

2016-09-05 Thread Matt Harden
That would be pretty heavy-handed. The determination of what's style and what's not is a little arbitrary. For the most part, gofmt is all about where the whitespace goes (there are other things, I realize). The compiler mostly doesn't care about whitespace, as long as some whitespace is present wh