On Saturday, August 6, 2016 at 5:19:08 PM UTC+8, Dave Cheney wrote: > > Because an interface is a run time data structure, it cannot contain > constants because they don't exist at run time. >
I think an interface is not essential to be always a run time data structure. If compiler thinks it is constant, then it is constant. > > On Saturday, 6 August 2016 19:14:26 UTC+10, T L wrote: >> >> >> >> On Saturday, August 6, 2016 at 3:58:52 PM UTC+8, Dave Cheney wrote: >>> >>> It is not possible. Constants only exist at compile time. >> >> >> yes, but why constant interface values can't exist at compile time? >> >> > -- 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.