pokemon-essentials
pokemon-essentials copied to clipboard
Changed multiplying by self to exponent
deviation * deviation
is longer than deviation ** 2
. That's why I changed it.
This is really petty.
I will try to check for other cases of a number multiplying by itself and replace them with exponents.
NOTE: The commit above modified 10 files, but the name says 3 because I forgot to change it.
Having more examples doesn't make it less petty. What's the point?
This might be a minor application of DRY (Don't Repeat Yourself), which doesn't apply just to iteration, but to general repetition. That's why I put exponentiation here.
Due to possible merge conflicts, this PR will be closed now.