All this discussion makes an internal voice in my head scream: "They need Lisp macros!"
But the world moved on from macros into... this.
Edit: My reasoning is as follows: the comment that says:
// 10 repetitive lines of math
is exactly the line that would have been replaced by a macro in the original code, and everything would have worked the same, as macros don't modify the stack like a function call does. Unless you want it to.
But the world moved on from macros into... this.
Edit: My reasoning is as follows: the comment that says:
is exactly the line that would have been replaced by a macro in the original code, and everything would have worked the same, as macros don't modify the stack like a function call does. Unless you want it to.