Hi Russ,
Thanks Russ, I complete agree with you. I just have doubt because I
try to write a auto make program for Go.
http://code.google.com/p/moogle-store/
I think I will detect cyclic decency and stop make that problematic
package.
In C/C++, it just throw cyclic dependency issues to linker and let
linker decide how to solve it, and it may works something and fail
later.
So we won't detect that problem in early stage.
Since Go have excellent package system and don't provide header, it
will raise the problem in compile time rather then link time.
This is good approach, IMO. :) Stop people do stupid
On 12月7日, 上午12時58分, Russ Cox <
r...@golang.org> wrote:
> On Sun, Dec 6, 2009 at 08:41, ziyu_huang <
ziyu4hu...@gmail.com> wrote:
> > What if your package havecyclicdependency.
>
> If you have acyclicdependencybetween files
> within a single package, that's fine.
>
> If you have acyclicdependencybetween packages,
> that's not: it won't compile and you have to fix your
> packages to eliminate thedependency. This is occasionally