I wonder if the following is easier to grok?
if spam(eggs, -1 * i): pass
I'm not sure I have an opinion on this yet hence throwing this out there
for discussion. I suspect this is what you meant by "fix my code".
Chris
Than that's what I'll do :)
> > So... is this behaviour intended and should I fix my code? Or should "-
> > i" be alllowed aswell?
>
> I wonder if the following is easier to grok?
>
> if spam(eggs, -1 * i): pass
>
> I'm not sure I have an opinion on this yet hence throwing this out there
> for discussion. I suspect this is what you meant by "fix my code".
>
> Chris
I have to say that I am wondering about the best solution too. With a
single character variable (i.e. "-i") it's fairly readable. However,
with a "-some_variable" it seems less readable and the "-1 *
some_variable" approach would be better.
~rick