Re: (re Mail::Reporter INIT block ) Re: Mail-Box-2.057 errors
Mitar <[email protected]> Tue, 21 Sep 2004 13:01:13 +0200
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
Hi! On Tue, 21 Sep 2004 11:24:37 +0200, Mark Overmeer <[email protected]> wrote: > * DH ([email protected]) [040921 11:13]: > > No there aren't (Mail::Reporter doesn't have circlar dependencies). > > Besides, circular dependencies are design flaws. > > Why do you keep trying to imagine a hypothetical?:) > > .... because in my experience, module users often create those hypothetical > situations.... > > Circular dependencies do happen, but happily not so often. The main point > was, that using a BEGIN or INIT is "nicer" (for some definition of "nice") What a discussion. I would like only to add that I am also *for* "nicer" coding. I think that making programs (and especially modules) which works only most of the time is a very bad practice. It is the same as a car without any seat belts. Most of the time it will work nicely but when misused you are dead. I do not know if there is already but maybe you should create some test which create circular dependencies and add it to test suite. So you could test module under those circumstances. Best regards Mitar