Re: [go-nuts] Re: WASM Performance

2021-09-07 Thread David Suarez
glegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/aa9b40d9-b154-48dd-bb52-62f139e3bceen%40googlegroups.com. Sincerely, David Suarez Gallup Strengths Finder:  Achiever * Strategic * Relator * Ideation * Lea

Re: [go-nuts] Re: WASM Performance

2021-09-07 Thread David Suarez
googlegroups.com. Sincerely, David Suarez Gallup Strengths Finder:  Achiever * Strategic * Relator * Ideation * Learner https://www.linkedin.com/in/davidjsuarez/  -- You received this message because you are subscribed to the Google Groups "golang-nuts&q

Re: [go-nuts] Re: [generics] Type lists should be usable in any interface

2020-06-19 Thread David Suarez
I agree generally with constraint and interface really being different should be named differently. Is the simplest solution that is also clean to have a constraint type that only allows the type parameter (for now) and can also include an interface type? The generic definitions can allow for

[go-nuts] First column in sql rows.Scan is always zero

2020-06-10 Thread David Suarez
Lol! Lack of sleep is real... apologies for the horrible keyboard offset below. What I was trying to suggest was to check the case on your ID field. In your struct it is all capitalized. The constant and my guess the dereferenced string is a lower case i with a capital D. Running your

[go-nuts] First column in sql rows.Scan is always zero

2020-06-08 Thread David Suarez
I havemf eun tour code bit the lower case "eye" jumps out as something to look at... "case iD". Hope that helps. A debugger to walk through should help! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and

[go-nuts] Re: The "leave "if err != nil" alone?" anti-proposal

2019-07-01 Thread David Suarez
The number of posts on this topic piqued my curiosity so I hope to add some considerations after doing some research on this trail that I hope you find useful. TL;DR: It is possible that the reason for the interest in improving "exception handling" in the proposed way is driven by individuals

[go-nuts] Re: Resolving methods on pointer types

2019-02-25 Thread David Suarez
I could be wrong but this seems like over-complicating what you need. Just return the pointer to your foo struct. If you have your NewFoo return your pointer it should be accessible but not modifiable and a quick test I just did seems to validate that. Let me know if I misunderstand, in

[go-nuts] Why is Context explicit vs. implicit in Go?

2019-01-24 Thread David Suarez
First off, I am really loving Go overall. I probably did what many do and started out with less Context use and now it is becoming a standard for a few tiers which I see was in a blog somewhere from Google as well. What I haven't been able to find is if there has ever been a conversation on