Re:John Carmack on Inlined Code (2014)
by Fillipoman on Tuesday July 19, 2016 @04:33PM
(#12124675)
And with c++11 you can use a lambda capture to make it even cleaner (I'm not sure if this is the right syntax)
[&fancyNumber] { // [Mathy stuff redacted] fancyNumber = someIntermediateVariable / anotherIntermediateVariable; }();
If your methods are functional, then
Can be inclined cleanly/equivalently as: