[go-nuts] Re: Opening brace can't be placed on a separate line killing the language for me

2018-09-08 Thread Lucio
On Saturday, 8 September 2018 10:09:31 UTC+2, Mohamed yousry wrote: > > [ ... ] For me the language is Dead now it was a wasted time I understand how you feel, but are we the ones who need to hear this? Surely you realise we are precisely the wrong choir to preach to? No offence intended,

Re: [go-nuts] Re: Opening brace can't be placed on a separate line killing the language for me

2018-09-08 Thread Michael Jones
odsh97, More than a million Go programmers agree with you that format and readability is everything. We have a standard tool, go fmt, to ensure it. All Go code conforms. You'll like the uniformity. Michael On Sat, Sep 8, 2018 at 7:50 AM alanfo wrote: > I've never been able to understand why

Re: [go-nuts] Re: Opening brace can't be placed on a separate line killing the language for me

2018-09-08 Thread alanfo
I've never been able to understand why 'go fmt' allows you to add the function body (apparently of any length) on the same line as its declaration but doesn't allow a one line 'if' or 'for' statement even if the body consists of a single short statement. So, if you write this: if

Re: [go-nuts] Re: Opening brace can't be placed on a separate line killing the language for me

2018-09-08 Thread Jan Mercl
On Sat, Sep 8, 2018 at 12:01 PM Mark Volkmann wrote: > How did you do that? I don’t see any formatting configuration. Correct, there's none. -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

Re: [go-nuts] Re: Opening brace can't be placed on a separate line killing the language for me

2018-09-08 Thread Mark Volkmann
How did you do that? I don’t see any formatting configuration. --- R. Mark Volkmann Object Computing, Inc. > On Sep 8, 2018, at 3:48 AM, Jan Mercl <0xj...@gmail.com> wrote: > > On Sat, Sep 8, 2018 at 10:14 AM Dave Cheney wrote: > > > I personally don't like that I cannot write one liner

Re: [go-nuts] Re: Opening brace can't be placed on a separate line killing the language for me

2018-09-08 Thread Jan Mercl
On Sat, Sep 8, 2018 at 10:14 AM Dave Cheney wrote: > I personally don't like that I cannot write one liner functions on one line because of gofmt's preference for reformatting the same function over three lines ... Please navigate to https://play.golang.org/p/VPfFLIyhUqp and click format. --

[go-nuts] Re: Opening brace can't be placed on a separate line killing the language for me

2018-09-08 Thread Dave Cheney
I'm sorry you feel this way. The reality is that the format of the language is not something that is going to change. I personally don't like that I cannot write one liner functions on one line because of gofmt's preference for reformatting the same function over three lines -- but, I put this