Closed bobbicodes closed 1 year ago
A couple of issues with this:
armstrong-numbers
, which made me kind of sad, but at the time I figured that it would potentially work for other exercises.However, when I thought about it more carefully, I don't think my logic is even valid, and here's why: I'm 90% sure that everything the code is doing is deterministic. Therefore, any duplicate representations should indeed end up with the same placeholder names! It wasn't a bad idea (and still might improve the output aesthetically, however...
mapping.json
! Ouch! But to be fair, there really ought to be a test for this, that performs the placholder-switch and back again to verify that the code is the same.Closing this as this is unnecessary, as mentioned in the above comment.
This PR sorts the variable placeholders to normalize the order of them.