n00ki3 n00ki3 - 8 months ago 70
C++ Question

is it reasonable to program an algorithm without function calls?

I am programming an algorithm for a library and I didn't use function calls at all.
The algorithm is about 100 lines and there is no duplicate code.or should I use inlining?


Is your algorithm readable? Maybe dividing it into several functions would be beneficial for readability (and hence maintainability) even if it will not reduce duplication.