Re: [go-nuts] Re: [Proposal] Change how gofmt formats struct fields

2020-02-19 Thread Manlio Perillo
On Wednesday, February 19, 2020 at 7:26:32 PM UTC+1, ohir wrote: > > Dnia 2020-02-18, o godz. 10:16:57 > Manlio Perillo > napisał(a): > > > Here is an example of a diff with a lot of noise, where the actual > change > > is very hard to see: > > https://gist.github.com/perillo/c5b3bdff9e8db9c89

Re: [go-nuts] Question about the zero-value design: Why pointers zero value is not the zero value of what they points to?

2020-02-19 Thread Brian Candler
I just don't like the implication that these things *haven't* been thought about, because nobody could be bothered to polish the "rough edges". -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving ema

Re: [go-nuts] Re: stringer command and generated String() function

2020-02-19 Thread David Finkel
On Tue, Feb 18, 2020 at 8:57 AM Vincent Blanchon wrote: > Yes, definitely, good point. > Both are them are good depending on the case actually. > > > Le mardi 18 février 2020 16:55:02 UTC+4, Jan Mercl a écrit : >> >> On Tue, Feb 18, 2020 at 1:47 PM Vincent Blanchon >> wrote: >> >> > However, in

Re: [go-nuts] Re: [Proposal] Change how gofmt formats struct fields

2020-02-19 Thread Wojciech S. Czarnecki
Dnia 2020-02-18, o godz. 10:16:57 Manlio Perillo napisał(a): > Here is an example of a diff with a lot of noise, where the actual change > is very hard to see: > https://gist.github.com/perillo/c5b3bdff9e8db9c89f316670d129c0dd > Manlio I just posted a brief proposal — keep tabs on it, as I nei

[go-nuts] [Proposal] cmd/gofmt Minimize adjacent whitespace changes on struct layout edits.

2020-02-19 Thread Wojciech S. Czarnecki
Proposal: Minimize adjacent whitespace changes on struct layout edits. With current gofmt rules slight changes to a struct declaration make for avalanche changes across declaration whitespace due to gofmt trying to layout struct declaration "pretty". Produced changeset size make diffs unreadable i

Re: [go-nuts] Question about the zero-value design: Why pointers zero value is not the zero value of what they points to?

2020-02-19 Thread Michel Levieux
Though I think I *do* agree with you on that particular point (zero-value design), I'd say this argument is rarely a real one. Let me explain myself: However clever Google's thousands of programmers are, there might be places for improvement and I personally want people to try and propose evolution

Re: [go-nuts] Question about the zero-value design: Why pointers zero value is not the zero value of what they points to?

2020-02-19 Thread Brian Candler
On Wednesday, 19 February 2020 10:59:33 UTC, klos...@gmail.com wrote: > > I see in a programming language as my most important tool. I use it every > single day to make a living. It is because of that importance that I want > me (and my team) to be as efficient as possible when working with it, s

[go-nuts] array json streaming inside json object

2020-02-19 Thread Jérôme LAFORGE
Hello, Do you know an elegant, simple and clean way to stream an json array inside json object? Here an example, that does the job, but I find it complicated (and how we manage the comma when document has error and we have to ignore it) https://play.golang.org/p/lZa8iVaQAKg thx in adv BR Jérôm

Re: [go-nuts] Question about the zero-value design: Why pointers zero value is not the zero value of what they points to?

2020-02-19 Thread Volker Dobler
On Wednesday, 19 February 2020 11:59:33 UTC+1, klos...@gmail.com wrote: > > [...] > But if you create wood houses for people, you don't even think of using a > hammer! You will use a much more reliable tool. Or if you use it, it will > probably be the best hammer in the market, with a perfect wei

Re: [go-nuts] Question about the zero-value design: Why pointers zero value is not the zero value of what they points to?

2020-02-19 Thread kloster08
Thanks a lot for your response. All your points make sense and I can understand your point of view. I simply have a slightly different point of view that my experience has shaped. I see in a programming language as my most important tool. I use it every single day to make a living. It is becaus