3 ms·
I always shy away from clever solutions that involve semantics that's not obvious to the reader. If something using this code lends on your lap you are going to
by bnastic 11y ago
I always shy away from clever solutions that involve semantics that's not obvious to the reader. If something using this code lends on your lap you are going to spend hours tracking its source, figuring out what the author was trying to say, etc.
I know, I've been there. Making my coworkers' lives harder than it needed to be with clever template magic didn't help anyone. I ripped that code out soon after.
But if the code like this is well contained, and is there to solve a very specific problem that maintainers will be able to handle, then go for it.