3 ms·
> Note that F 1.1 requires G 1.1, but G 1.1 also requires F 1.1. Declaring this kind of cycle can be important when singleton functionality moves from one modul
by lboasso 9y ago
> Note that F 1.1 requires G 1.1, but G 1.1 also requires F 1.1. Declaring this kind of cycle can be important when singleton functionality moves from one module to another. Our algorithms must not assume the module requirement graph is acyclic.
I thought we cannot have cycles in Go packages.
The Go spec says "The importing of packages, by construction, guarantees that there can be no cyclic initialization dependencies."
What am I missing?