On Thu, Aug 4, 2016 at 10:47 AM, T L <tapir....@gmail.com> 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 <tapi...@gmail.com> wrote: >> > >> > 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 >> > into constant, its type is still error. >> >> Try it. >> >> Ian > > > could you elaborate it? do you mean to modify the core lib src and rebuild > it?
Yes, for example. It's quite easy to do. You will find that you can not write a const of type error, because error is an interface type. Ian -- 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. For more options, visit https://groups.google.com/d/optout.