[go-nuts] Re: What happened if http timeout happened but the request is still sent out

2023-01-04 Thread w54n
If the connection to the server is lost while transmission, you will probably receive a broken pipe error. If the timeout happens before sending data, nothing to care. If the timeout happens during data transmission, well, you may have incomplete data(corrupted) in the server. I don't think ther

Re: [go-nuts] Go routine context

2022-10-02 Thread w54n
Not an entirely true statement, and a fairly misunderstanding of the subject. On Saturday, October 1, 2022 at 11:13:19 PM UTC+2 al...@pbrane.org wrote: > Robert Engels once said: > > I think you’ll find the article interesting. It is certainly written > > by a CS “god” that knows what he’s ta

[go-nuts] Re: generics: what can we do with an any type?

2021-12-16 Thread w54n
[]byte is a no comparable type. quoting the docs: *comparable is an interface that is implemented by all comparable types(booleans, numbers, strings, pointers, channels, interfaces,arrays of comparable types, structs whose fields are all comparable types).The comparable interface may only b

Re: [go-nuts] Do pointer receiver methods need to be checked for nil?

2021-11-29 Thread w54n
I would like to share two posts from Cheney which could help you visualise situations of nil receivers, and if those should be checked or not by your program https://dave.cheney.net/2013/01/19/what-is-the-zero-value-and-why-is-it-useful https://dave.cheney.net/2016/03/19/should-methods-be-declar