Hacker News new | ask | show | jobs
by cjhanks 2716 days ago
I agree with this blog writer. Allowing typedefs to cross static if boundaries would be a major change to the way I read code. Unless there's a more substantive example demonstrating why using the existing metaprogramming is insufficient, its benefits are imo outweighed by its cost.
1 comments

Well you already have to remember that 'if' introduces a scope but '#if' doesn't..
I guess that's true. But I can't remember the last time I have used `#if` aside from header guards and optimization paths. So they do exist, but I almost never do this.