Re: globals vs parms
Matthias Andree <[email protected]>
| Newsgroups | gmane.mail.bogofilter.devel |
|---|---|
| Message-ID | <[email protected]> |
David Relson <[email protected]> writes: > Adding a parameter that must be passed through multiple functions to > get where it's needed is not my idea of the right way to do things. > Straightforward flag variables are easier to deal with. The general problem with globals is that they aren't visible from the place where they're called, hard to see where they're used, and harm (re)usability of the code. -- Matthias Andree _______________________________________________ Bogofilter-dev mailing list [email protected] http://www.bogofilter.org/mailman/listinfo/bogofilter-dev