Re: [go-nuts] Re: Why doesn't std lib use the method in this article to make err variables constant?

2016-08-05 Thread T L
On Friday, August 5, 2016 at 2:21:53 AM UTC+8, Ian Lance Taylor wrote: > > On Thu, Aug 4, 2016 at 11:19 AM, Manlio Perillo > wrote: > > Il giorno giovedì 4 agosto 2016 17:54:33 UTC+2, Dave Cheney ha scritto: > >> > >> Fwiw, io.EOf can be converted to a constant, all

Re: [go-nuts] Re: Why doesn't std lib use the method in this article to make err variables constant?

2016-08-04 Thread Manlio Perillo
On Thu, Aug 4, 2016 at 8:21 PM, Ian Lance Taylor wrote: > On Thu, Aug 4, 2016 at 11:19 AM, Manlio Perillo > wrote: >> Il giorno giovedì 4 agosto 2016 17:54:33 UTC+2, Dave Cheney ha scritto: >>> >>> Fwiw, io.EOf can be converted to a constant, all the

Re: [go-nuts] Re: Why doesn't std lib use the method in this article to make err variables constant?

2016-08-04 Thread Ian Lance Taylor
On Thu, Aug 4, 2016 at 11:19 AM, Manlio Perillo wrote: > Il giorno giovedì 4 agosto 2016 17:54:33 UTC+2, Dave Cheney ha scritto: >> >> Fwiw, io.EOf can be converted to a constant, all the tests pass. But that >> would change the type of an exported symbol, so it's not

Re: [go-nuts] Re: Why doesn't std lib use the method in this article to make err variables constant?

2016-08-04 Thread Manlio Perillo
Il giorno giovedì 4 agosto 2016 17:54:33 UTC+2, Dave Cheney ha scritto: > > Fwiw, io.EOf can be converted to a constant, all the tests pass. But that > would change the type of an exported symbol, so it's not possible. Even though the type is not exported? I can't see where the

Re: [go-nuts] Re: Why doesn't std lib use the method in this article to make err variables constant?

2016-08-04 Thread Ian Lance Taylor
On Thu, Aug 4, 2016 at 10:47 AM, T L wrote: > > On Friday, August 5, 2016 at 1:14:38 AM UTC+8, Ian Lance Taylor wrote: >> >> On Thu, Aug 4, 2016 at 10:13 AM, T L wrote: >> > >> > On Thursday, August 4, 2016 at 11:54:33 PM UTC+8, Dave Cheney wrote: >> >> >>

Re: [go-nuts] Re: Why doesn't std lib use the method in this article to make err variables constant?

2016-08-04 Thread T L
On Thursday, August 4, 2016 at 11:54:33 PM UTC+8, Dave Cheney wrote: > > Fwiw, io.EOf can be converted to a constant, all the tests pass. But that > would change the type of an exported symbol, so it's not possible. sorry, I still don't get it. The type of io.EOF is error. After changing it

Re: [go-nuts] Re: Why doesn't std lib use the method in this article to make err variables constant?

2016-08-04 Thread Ian Lance Taylor
On Thu, Aug 4, 2016 at 8:43 AM, T L wrote: > > On Thursday, August 4, 2016 at 1:48:32 PM UTC+8, Dave Cheney wrote: >> >> Because we cannot change symbols covered by the Go 1 contract. > > > Aha, you are the author of this article. Great article! > >> "cannot change symbols