3 ms·
> In any case, I'd agree that meta-programming is too often abused, but the proposed grep test is far too strict. I agree. In a CMS I'm coding, the core MVC-li
by laumars 13y ago
> In any case, I'd agree that meta-programming is too often abused, but the proposed grep test is far too strict.
I agree. In a CMS I'm coding, the core MVC-like mark up tags work by using function tables in Go. Such code would fail the grep test - but it makes a lot of sense in the project and it actually very readable as well. In fact in that particularly use case, not only is the code more readable, but it's also more efficient.
But this is the age old problem with having rules in languages (both human and programming) - more often than not, there are exceptions that are perfectly legitimate use cases.