Re: [go-nuts] x, err = some_func(); if err != nil { } seems awkward

2020-06-14 Thread Ian Lance Taylor
On Sun, Jun 14, 2020 at 8:25 AM Tom Limoncelli wrote: > > On Thu, Jun 4, 2020 at 3:34 PM Ian Lance Taylor wrote: > > > > On Thu, Jun 4, 2020 at 8:43 AM wrote: > > > > > > ?? Why not a cleaner syntax e.g. x = some_func () #{ } .. symbol # > > > arbitrarily chosen > > > > Besides what other

Re: [go-nuts] x, err = some_func(); if err != nil { } seems awkward

2020-06-14 Thread lgodio2
https://golang.org/issue/38151 great news !... lets hope something finally gets resolved FWIW, I modify my original proposal: replacing #{.. .} with err {...} On Sunday, June 14, 2020 at 12:57:01 PM UTC-4, Ian Lance Taylor wrote: > > On Sun, Jun 14, 2020 at 8:25 AM Tom Limoncelli >

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Robert Engels
Thank you, I had already corrected my statement. Sorry to everyone. > On Jun 14, 2020, at 9:13 AM, Sam Whited wrote: > > They are directed to the Equal Justice Initiative which is a non-profit. > In the united states 501(c)3 not-for-profit organizations are barred > from certain kinds of

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Amarjeet Anand
I second Peter. This is absolutely unbelievable. On Sun, Jun 14, 2020 at 7:06 PM peterGo wrote: > Recently, a political message with a fundraising link appeared as a banner > atop golang.org websites: https://golang.org/, https://pkg.go.dev/. > > content/static: add Black Lives Matter banner to

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Sam Whited
This is not a simple political issue, it is a personal human issue. It is a social issue. It is a justice issue. It seems quite obvious to me that this is different than if they had put a fundraiser for a candidate for office, for instance, in a banner. It amazes me how often people come out of

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Robert Engels
Major correction, this is not the .org I was thinking of. I have no knowledge that what I said is the case with the EJI. > On Jun 14, 2020, at 9:10 AM, Robert Engels wrote: > > I agree it is an important social issue, but in this particular case I > believe the funds are directed to specific

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Robert Engels
I agree it is an important social issue, but in this particular case I believe the funds are directed to specific political parties so the boundary between supporting social issues and political contributions is murky. I am not saying it shouldn’t be done but it should be more transparent. >

Re: [go-nuts] Go has eliminated most of my off-by-one errors except 0... I mean 1.

2020-06-14 Thread Tom Limoncelli
Thank you for the feedback! I took Jan Mercl's suggestion and wrote the short function to see if it is useful. It is based on C Banning's suggested code. I'm going to start using it on my projects to see if it helps. The module is called "hind":https://github.com/TomOnTime/hind hind.S(x)

Re: [go-nuts] x, err = some_func(); if err != nil { } seems awkward

2020-06-14 Thread Tom Limoncelli
On Thu, Jun 4, 2020 at 3:34 PM Ian Lance Taylor wrote: > > On Thu, Jun 4, 2020 at 8:43 AM wrote: > > > > ?? Why not a cleaner syntax e.g. x = some_func () #{ } .. symbol # > > arbitrarily chosen > > Besides what other people have said, it may be of interest to glance > through >

Re: [go-nuts] x, err = some_func(); if err != nil { } seems awkward

2020-06-14 Thread Jan Mercl
On Sun, Jun 14, 2020 at 5:25 PM Tom Limoncelli wrote: > > On Thu, Jun 4, 2020 at 3:34 PM Ian Lance Taylor wrote: > > > > On Thu, Jun 4, 2020 at 8:43 AM wrote: > > > > > > ?? Why not a cleaner syntax e.g. x = some_func () #{ } .. symbol # > > > arbitrarily chosen > > > > Besides what other

[go-nuts] political fundraising on golang.org!

2020-06-14 Thread peterGo
Recently, a political message with a fundraising link appeared as a banner atop golang.org websites: https://golang.org/, https://pkg.go.dev/. content/static: add Black Lives Matter banner to top of site https://go-review.googlesource.com/c/website/+/237589 Black Lives Matter.

Re: [go-nuts] Go has eliminated most of my off-by-one errors except 0... I mean 1.

2020-06-14 Thread Jake Montgomery
On Saturday, June 13, 2020 at 1:09:16 PM UTC-4, Jan Mercl wrote: > > On Sat, Jun 13, 2020 at 5:37 PM Jake Montgomery > wrote: > > > You cant really write a short 'end()' function. You have to write an end > function for every type of slice. Or use reflection, which would make the > function

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Amarjeet Anand
Thanks Sam for the details Now it makes sense and I can see where it is coming from. On Sun, Jun 14, 2020 at 7:44 PM Sam Whited wrote: > They are directed to the Equal Justice Initiative which is a non-profit. > In the united states 501(c)3 not-for-profit organizations are barred > from certain

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Jon Reiter
Except now sharing links to golang.org, or showing those web pages at events, could be argued as advocating for a foreign political cause. And that's illegal in much of the world. Per google, google operates in 219 countries. This could force community members to argue in any of at least 219

[go-nuts] Re: The next layer of abstraction for Go development?

2020-06-14 Thread Saied Seghatoleslami
As evidence for not needing the next layer of abstraction, I offer Django class-based-views. The go approach is much more understandable and easier to follow. On Saturday, June 13, 2020 at 4:11:59 PM UTC-4, Asim Aslam wrote: > > Might not be the right place for this discussion but also useful

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Sam Whited
They are directed to the Equal Justice Initiative which is a non-profit. In the united states 501(c)3 not-for-profit organizations are barred from certain kinds of political speech including endorsing individual parties or candidates. The banner does not point to any particular political party.

Re: [go-nuts] x, err = some_func(); if err != nil { } seems awkward

2020-06-14 Thread lgodio2
Amen Tom.. hard to believe that those who determine what Go syntax is, and is not, have yet to alter this uniquely awkward feature of the Go language. On Sunday, June 14, 2020 at 11:26:08 AM UTC-4, Tom Limoncelli wrote: > > On Thu, Jun 4, 2020 at 3:34 PM Ian Lance Taylor > wrote: > > > >

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread 'Axel Wagner' via golang-nuts
You could start here. If the Go team is comfortable putting a banner in its support on the page, they might do so. (You are using "reductio ad absurdum" wrong). On Mon, Jun 15, 2020 at 12:12 AM andrey mirtchovski wrote: > Hi, > > I have a non-profit I'd like to support. Who do I ask to put a

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread 'Axel Wagner' via golang-nuts
On Mon, Jun 15, 2020 at 12:08 AM Robert Engels wrote: > Equating not supporting this and supporting marginalized groups is not > correct. You can support marginalized groups all day and disagree on how > best to do so. It doesn’t have to be political at all. > No, it is *inherently* political

Re: [go-nuts] x, err = some_func(); if err != nil { } seems awkward

2020-06-14 Thread Randall O'Reilly
I noticed a kind of circularity in the arguments around this issue. The simple "inline the if block" issue was created and rejected earlier: https://github.com/golang/go/issues/27135 -- in part because the central issue of error handling logic was supposed to be resolved by some other upcoming

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Robert Engels
Equating not supporting this and supporting marginalized groups is not correct. You can support marginalized groups all day and disagree on how best to do so. It doesn’t have to be political at all. > On Jun 14, 2020, at 4:43 PM, 'Axel Wagner' via golang-nuts > wrote: > >  > Hi, > > the

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Ian Lance Taylor
Let's please all remember to be respectful and charitable in this discussion, per the gopher values in the code of conduct. Let's not let this go off the rails. Thanks. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

[go-nuts] Re: political fundraising on golang.org!

2020-06-14 Thread Amnon Baron Cohen
I, for one, applaud the posting of the banner. Solidarity! On Sunday, 14 June 2020 14:36:38 UTC+1, peterGo wrote: > > Recently, a political message with a fundraising link appeared as a banner > atop golang.org websites: https://golang.org/, https://pkg.go.dev/. > > content/static: add Black

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread robert engels
I never said once that what the Go team was wrong, or not within their rights - all I ever called for was transparency so people can educated decisions on the subject. After more research into EJI I even stated I was wrong about possible political affiliations in this case. Maybe you were

[go-nuts] Re: The next layer of abstraction for Go development?

2020-06-14 Thread David Skinner
I am very very old, and very old school, so I always start with UMLs and ERDs and design my apps long before I do any coding. These flowcharts are visual representations that are concise and easy to understand and they are saved as XML which can be parsed by a Go program controlled by +generate

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Jesse McNelis
On Mon, Jun 15, 2020 at 8:12 AM andrey mirtchovski wrote: > Hi, > > I have a non-profit I'd like to support. Who do I ask to put a banner > on golang.org for me? > > (reductio ad absurdum) > This sounds like a great idea to me. It would probably need to be a non-profit that furthers the Go

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Sam Whited
What makes you think this is somehow politics and not simply supporting an important not-for-profit at a time when it's particularly relevant and important to do so? I don't see anything political about the topic unless you count that some of the solutions are political (but this one, donating to

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread 'Axel Wagner' via golang-nuts
Hi, the Go Team and the Go Project are composed of people and expressing an opinion - *especially* a political one - is well within their right (If I was a conservative American I would wax poetically about the first amendment here). Let's not pretend this is about politics or not. This is about

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread andrey mirtchovski
Hi, I have a non-profit I'd like to support. Who do I ask to put a banner on golang.org for me? (reductio ad absurdum) On Sun, Jun 14, 2020 at 4:08 PM Robert Engels wrote: > > Equating not supporting this and supporting marginalized groups is not > correct. You can support marginalized groups

Re: [go-nuts] x, err = some_func(); if err != nil { } seems awkward

2020-06-14 Thread Tom Limoncelli
Great minds think alike! On Sun, Jun 14, 2020 at 12:56 PM Ian Lance Taylor wrote: > > On Sun, Jun 14, 2020 at 8:25 AM Tom Limoncelli wrote: > > > > On Thu, Jun 4, 2020 at 3:34 PM Ian Lance Taylor wrote: > > > > > > On Thu, Jun 4, 2020 at 8:43 AM wrote: > > > > > > > > ?? Why not a cleaner

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread Eric S. Raymond
Sam Whited : > This is not a simple political issue, it is a personal human issue. It > is a social issue. It is a justice issue. It is the injection of politics into a list where politics does not belong. Kindly perform your virtue signalling elsewhere. --

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread 'Dan Kortschak' via golang-nuts
In the context of a sufficiently large collection of people all actions are political to some degree, *including inaction and non-comment*. Where the boundary is for the degree on what constitutes a political action and what doesn't varies between people. On Sun, 2020-06-14 at 16:44 -0400, Eric

Re: [go-nuts] political fundraising on golang.org!

2020-06-14 Thread 'Axel Wagner' via golang-nuts
On Mon, Jun 15, 2020, 01:22 robert engels wrote: > All I pointed out was that someone objecting to this may not be doing > based on political party affiliations. > No, what you said is, that objecting to the banner may not be *political*. You didn't mention parties and neither did I. And I