3 ms·
Seems like the obvious solution here would be a macro, I would think. I wonder why that wasn't tried.
by OskarS 7y ago
Seems like the obvious solution here would be a macro, I would think. I wonder why that wasn't tried.
- ken 7y agoA macro isn't a function and can't be used like a function. Sure, doing the work at compile-time instead of run-time will be much more efficient at run-time, but you're won by moving the goal posts.
- smabie 7y agoMacros aren’t first class, so there’s that. Not that it would matter in this case, but it’s something to keep in mind.