Hi,

I'm not sure what type you are referring to here. This file defines many
named types and interfaces and I'd say from a quick read that all of them
are used.

Could you clarify what you mean?

Le dim. 27 juin 2021 à 15:53, Victor Giordano <vitucho3...@gmail.com> a
écrit :

> Hello gophers!
>
> While studing at this source code
> <https://github.com/golang/go/blob/37f9a8f69d6299783eac8848d87e27eb563500ac/src/net/http/server.go>
> in search for some knowledge and enlightment, i do note that in some file a
> type is defined and then is not used in a place where it could be used.
> This open an interrogant for me, because tipification is often good thing,
> regardless the  language  I may state,  and I express it via a ticket
> <https://github.com/golang/go/issues/46926>. I get the idea that due to
> language grammar changing the code would be a breaking change.
>
> But i keep wondering if they actually do this for a reason.. i mean, given
> the possiblity to get back in time, ¿does the team at golang will write the
> same source code, definiting a type with a name and then intenttionally not
> using it? i mean...i keep wondering if there is any reason for defined
> types and then not use it and using the gitlab channel i probably fail to
> express my initial intention. I do often read some third party code, in
> order to view others minds (or try at least..), what i'm asking here is a
> question in order to get another people point of view.
>
> Thanks again!
>
> --
> 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 golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/96369719-6200-4765-aee1-83befce04666n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/96369719-6200-4765-aee1-83befce04666n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAL4P9zxmoREs53w5Zy4w%3De3boPdrBK92yKW%3Dx5Lzc70cOQZ2mg%40mail.gmail.com.

Reply via email to