On Wed, Sep 24, 2008 at 10:40 PM, Tim Starling
<tstarling(a)wikimedia.org> wrote:
Defending the API, Yurik argued that class
constants provide a useful
level of parameter validation, which I think is a reasonable argument in
some cases.
Why not just raise a user warning if an invalid string parameter is passed?
I think
he means that typos in those constants are noticed better,
because mistyping a constant constitutes a syntax error while mistyping
a string doesn't.
Roan Kattouw (Catrope)