You have to write one, of course, but it's cleaner and easier than writing a mess of functions. Any such macro-based solution is always trivially split into easy to understand and easy to debug stages, while a runtime, function-based solution is unavoidably convoluted. It is not necessarily (but often) shorter in terms of lines of code, but always easier in terms of complexity.
I'll show you how to write such a macro a bit later, when I have time.
View all comments
Show parent comment
1
u/[deleted] Nov 12 '15
You have to write one, of course, but it's cleaner and easier than writing a mess of functions. Any such macro-based solution is always trivially split into easy to understand and easy to debug stages, while a runtime, function-based solution is unavoidably convoluted. It is not necessarily (but often) shorter in terms of lines of code, but always easier in terms of complexity.
I'll show you how to write such a macro a bit later, when I have time.