globals vs parms

Matthias Andree matthias.andree at gmx.de
Sat Apr 23 02:22:55 CEST 2005


David Relson <relson at osagesoftware.com> 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



More information about the bogofilter-dev mailing list