Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Jaded Burnout
Jul 10, 2004


Huragok posted:

For the love of all that is sweet and holy, please do this. If other popular languages had a tool (from inception of the language) like this then my eyes would not have to bleed every time I had to look at the source of something. Sometimes it's so bad that it triggers a "context switch" in my head.

I find it very difficult to read both BNF and the arch lexicon used in these and other language specs.

It's great as an implementation reference but as something supposed to teach me idiomatic Go it's just about the last thing I want to sit down and read.

Adbot
ADBOT LOVES YOU

Jaded Burnout
Jul 10, 2004


Voted Worst Mom posted:

Well, nothing about the specification really teaches you how to write idiomatic Go so that's warranted. The best way to learn that is probably reading Effective Go and literally reading through parts of the standard library you find interesting. It's just profound to me that I can even sit down and scarf down a language specification without necessarily learning a whole new set of paradigms.

Anyways, I think the post you quoted was referring to using the `gofmt` tool to format your code.

Ah. They didn't quote that bit in their quote. Now it makes more sense.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply