in reply to Use and Require - making an informed choice.
You also seem to focus on "the module's" need (suggesting requisites for the code to run) rather than more general quality aspects (like maintainability benefits through isolation of dependencies).
To summarize, I agree with your habits but would make the necessity of conditional loading the distinctive question. And even if conditional loading is called for, like in your PDA example, I would try hard not to sprinkle "requires" all over my code but isolate that again, perhaps in a meta module.
One exception to this is that I have sometimes followed suit with module authors not using "Carp" up front. It might be time to reconsider that, however.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use and Require - making an informed choice.
by g0n (Priest) on Jan 30, 2006 at 15:17 UTC | |
by merlyn (Sage) on Jan 30, 2006 at 17:19 UTC | |
by g0n (Priest) on Jan 30, 2006 at 18:04 UTC | |
by xdg (Monsignor) on Jan 30, 2006 at 15:28 UTC | |
by demerphq (Chancellor) on Feb 01, 2006 at 08:48 UTC |