Hacker News new | past | comments | ask | show | jobs | submit login

<i>D will always evaluate normal "if's" at runtime even if they are comptime-known, it will not do this automatically for you.</i>

WRONG. if in a CTFE function works without problems. static if has nothing to do with CTFE. static if is conceptually a beefed up proper #ifdef/#endif.

The biggest issue D has is all the FUD and misconceptions that are propagated about it.




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

Search: