control-structure
Is there a way to write these ifs nicer?
dx, dy = -dy, dx When in doubt, apply maths. 😉
Useful alternative control structures?
One that’s fairly common is the infinite loop. I’d like to write it like this: forever { // … }
dx, dy = -dy, dx When in doubt, apply maths. 😉
One that’s fairly common is the infinite loop. I’d like to write it like this: forever { // … }