Re: [go-nuts] Re: No Allman-Style, No go!

2017-07-31 Thread Hrobjartur Thorsteinsson
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 redun

Re: [go-nuts] Re: No Allman-Style, No go!

2017-07-30 Thread Hrobjartur Thorsteinsson
actually python is very normal, in that it does not confuse encapsulation with syntax. Go has the credit for exploring this exciting new frontier I think. 31. júl. 2017 12:08 f.h. skrifaði "Florin Pățan" : > This thread was dead for three years, but thanks for keeping the dream > alive. > > Hate

Re: [go-nuts] Re: No Allman-Style, No go!

2017-07-30 Thread Hrobjartur Thorsteinsson
its luxury that sudden support for allman style would be backwards compatible and future proof. No airplanes would crash. 30. júl. 2017 12:35 skrifaði "Jan Mercl" <0xj...@gmail.com>: On Sun, Jul 30, 2017 at 2:06 PM wrote: > Personally I'd prefer a simple compiler option :) You must be kidding,

Re: [go-nuts] Re: No Allman-Style, No go!

2017-07-29 Thread Hrobjartur Thorsteinsson
Dude, you are right. This confusing coding style with syntax in Go can be fixed by forking and applying a rediculously small patch. Jeez, lets stop complaining as u rightfully suggested. 29. júl. 2017 10:43 e.h. skrifaði "Wojciech S. Czarnecki" : > On Sat, 29 Jul 2017 10:36:42 -0700 (PDT) > ecsta

Re: [go-nuts] Re: No Allman-Style, No go!

2017-07-27 Thread Hrobjartur Thorsteinsson
This suggestion the funniest I have seen in any language: /*--*/ if x < 0 { { return sqrt(-x) + "i" }} /*-*/ Credit is "Neutrino" posted in 2014 on Stackoverflow. This is what I was looking for! Thank you Neutrino, both Go-style and Allman style fetished devs

Re: [go-nuts] Re: No Allman-Style, No go!

2017-07-27 Thread Hrobjartur Thorsteinsson
That's true, so it would be more useful in C than in Go. However, please everybody stop calling it K&R style, because it is not. On Fri, Jul 28, 2017 at 1:54 AM, John Souvestre wrote: > Ø Btw here are the result of a small internet poll on indentation styles > : > > - Allman : 7450 votes > - K&

Re: [go-nuts] Re: No Allman-Style, No go!

2017-07-27 Thread Hrobjartur Thorsteinsson
but, I have to say, wow, I never realized that curly bracket placement was that important and solved so many of the problems for Google! Do you realize that the Go lang devs themselves are not actually in agreement about the original motivations for constraining the language in this way. Some quot

Re: [go-nuts] Re: No Allman-Style, No go!

2017-07-24 Thread Hrobjartur Thorsteinsson
On this last comment, I would like to comment, Overall I agree with last commenter, the coolest programmer is the one that does not have any quarrels about style, just gets along with the group and helps get the job done. That being said, golangs approach to braces a part of logical syntax is unu