On Tue, Dec 13, 2016 at 5:19 PM Manlio Perillo <manlio.peri...@gmail.com>
wrote:

> However I think that there is no reason why a "main" package should not
be importable, to the point that
> I think that the fact that a "main" package is not importable is an
"exception" implemented in the Go tool.

The package dependency graph must be (1) an acyclic graph, ie. a tree with
(2) main package at its root, for obvious reasons. Importing main violates
both of the properties.
-- 

-j

-- 
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.

Reply via email to