Comment 3 for bug 1439504

Revision history for this message
Christophe Rhodes (csr21-cantab) wrote : Re: [Bug 1439504] Re: format directives should be more forgiving to negative arguments

Stas Boukarev <email address hidden> writes:

> I don't think anyone would intentionally supply negative arguments, so
> it's fair to not accept them.

For what it's worth, I'm not totally convinced by this. If the column
width is being computed programmatically, you could easily end up with a
situation where you subtract one thing from another. If the user is
required never to supply a negative argument, they will have to decorate
their code with (max 0 ...) everywhere -- and they may not detect the
problem until their code is in the field and exposed to the wider set of
inputs that deployment brings.

Christophe