[go-nuts] Re: Non-method funcs

2023-03-29 Thread nc
e to any conclusions based on the previous discussion. Thanks. On Monday, March 27, 2023 at 11:05:16 AM UTC-3 nc wrote: > Hello, > > I have found that I have a tendency to try to code non-method funcs in a > pure way (functionally speaking - so that the caller will not modify any

[go-nuts] Non-method funcs

2023-03-27 Thread nc
with this idea and I wonder if perhaps I am misguided. Perhaps it would make sense in another language but doesn't have a place in Go. I am not really sure. I just wanted to know if anybody had any well-formed opinions on this based on tested experience with Go. Thanks for your help. - n

Re: [go-nuts] How is this pattern for declaring and initalizing slices of known length?

2023-01-24 Thread nc
eally clear. On Tuesday, January 24, 2023 at 6:06:33 PM UTC-4 Ian Lance Taylor wrote: > On Tue, Jan 24, 2023 at 12:01 PM nc wrote: > > > > I have some sample code here: https://play.golang.com/p/H4kOGxamk0_D > > > > I have used a pattern in the above playground snippet

[go-nuts] How is this pattern for declaring and initalizing slices of known length?

2023-01-24 Thread nc
uld assume makes use of generics)? Can someone point me to it if so? Non-stdlib is fine. Thank you! - nc -- 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 an email to

Re: [go-nuts] Question about blog post: https://blog.golang.org/pipelines

2020-12-01 Thread nc
Great, thanks for that clarification. On Tuesday, December 1, 2020 at 4:51:11 PM UTC-4 Jan Mercl wrote: > On Tue, Dec 1, 2020 at 9:05 PM nc wrote: > > I just wanted to know if there was a way to tell that the goroutines c1, > c2 actually are hung. Could I in my head add the sent

[go-nuts] Question about blog post: https://blog.golang.org/pipelines

2020-12-01 Thread nc
says "In our example pipeline, if a stage fails to consume all the inbound values, the goroutines attempting to send those values will block indefinitely:"? Thanks for your help! - nc -- You received this message because you are subscribed to the Google Groups "golang-nuts&qu