On Tue, Oct 4, 2016 at 6:03 AM, Art Mellor <[email protected]> wrote: > From a user experience standpoint, I think the "Principle of least > astonishment" would argue it is more of a bug than not > https://en.wikipedia.org/wiki/Principle_of_least_astonishment
I can't argue with that. The problem is that the definition of -X relies critically on knowing the exact package name of the variable being set, which is to say the path used to import that package. That works well enough for every package other than "main". So one resolution of this problem is to say that -X does not work reliably with the main package. Although unfortunately I feel confident that many people do use -X with main, so we can hardly make it stop working. 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
