Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: