Re: [go-nuts] Error handling

2021-02-17 Thread robert engels
But - the issue is that most of the time - for complex systems - the errors cannot be handled where they are encountered - even in Go, most of the error handling becomes boilerplate returning the error detected and expecting some higher level to handle it. With exceptions this is enforced, or a

Re: [go-nuts] Error handling

2021-02-17 Thread Henry
I actually prefer the explicit error handling: ``` f, err := os.Open("path") if err != nil { //handle error } ``` When you are reading the code to look whether a certain condition has been handled, the explicit branching statement makes it easier to scan. On Wednesday, February 17, 2021 at 1

Re: [go-nuts] why need to cal the min path?

2021-02-17 Thread Ian Lance Taylor
On Wed, Feb 17, 2021 at 5:05 AM xie cui wrote: > > https://github.com/golang/go/blob/master/src/cmd/compile/internal/gc/escape.go#L1138 > why we need to cal the min path here? That code is gone now anyhow. I don't think the code had to compute the minimal number. I think that just helps keep th

Re: [go-nuts] The Generics Proposal has been accepted!

2021-02-17 Thread Ian Lance Taylor
On Wed, Feb 17, 2021 at 4:31 AM Space A. wrote: > > > But it doesn't give you the right to insult the community this way. > Not a community, but a particular (shit) show. Please be respectful and follow the Go Community Code of Conduct (https://golang.org/conduct). Thanks. Ian -- You received

Re: [go-nuts] Re: SQLite3 Support without CGo

2021-02-17 Thread ben...@gmail.com
Thanks a lot for that -- I appreciate the links. On Wednesday, February 17, 2021 at 10:58:48 PM UTC+13 Jan Mercl wrote: > On Tue, Feb 16, 2021 at 10:52 PM ben...@gmail.com > wrote: > > > Jan, is there any write-up about modernc.org/sqlite? I've dabbled in > automated conversion, and I'm very c

[go-nuts] [ANN] orion a powerful DSL to write acceptance tests

2021-02-17 Thread Iván Corrales Solera
Hey! I'm so happy to announce that there's a stable pre-release of Orion. Orion takes advantage of HCL to provide a powerful DSL to write our acceptance tests Source code: https://github.com/wesovilabs/orion Documentation: http://www.wesovilabs.com/orion/ Posts https://ivan-corrales-soler

[go-nuts] why need to cal the min path?

2021-02-17 Thread xie cui
*https://github.com/golang/go/blob/master/src/cmd/compile/internal/gc/escape.go#L1138* *why we need to cal the min path here?* -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send

Re: [go-nuts] Re: go get not working in Go 1.16

2021-02-17 Thread Wojciech S. Czarnecki
Dnia 2021-02-16, o godz. 13:57:06 Peter Kleiweg napisał(a): > So why would you ever want to *not* set `GO111MODULE=auto` ? > Because GOPATH mode is gonna to be slayed soon. It is better to use it less and less to avoid future disruption. Hope this helps, -- Wojciech S. Czarnecki << ^oo^ >>

Re: [go-nuts] The Generics Proposal has been accepted!

2021-02-17 Thread Space A.
> But it doesn't give you the right to insult the community this way. Not a community, but a particular (shit) show. ср, 17 февр. 2021 г. в 15:22, Mohamed Yousif : > I really don't know why you have been constantly negative. > > It seems like you genuinely care about the language and what it br

Re: [go-nuts] The Generics Proposal has been accepted!

2021-02-17 Thread Mohamed Yousif
I really don't know why you have been constantly negative. It seems like you genuinely care about the language and what it brought to you, and worried of what might the future bring to us. That's understandable. But it doesn't give you the right to insult the community this way. On Wed, 17 Feb 2

Re: [go-nuts] The Generics Proposal has been accepted!

2021-02-17 Thread Space A.
Shit show. вторник, 16 февраля 2021 г. в 21:52:43 UTC+3, skinne...@gmail.com: > I have been so very much looking forward to Go 2.0 and generics. Getting > it in 1.18 is the icing on the cake. I seriously did not think you could do > it considering that everyone was pulling you in different dir

Re: [go-nuts] Re: SQLite3 Support without CGo

2021-02-17 Thread Jan Mercl
On Tue, Feb 16, 2021 at 10:52 PM ben...@gmail.com wrote: > Jan, is there any write-up about modernc.org/sqlite? I've dabbled in > automated conversion, and I'm very curious if there's more information about > how it works, any pitfalls / unsupported stuff, etc, but having trouble > finding any