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

Maybe these compile time tests are more like `static_assert`, which is valuable for catching incompatible uses of library functions. Pretty good idea in my opinion.


Sure, enforcing invariants is a good thing to do right off the bat. But not "does this code do what it says on the tin?" kinds of tests. Those are better run gradually, at the (current) developer's behest (and most certainly, not blocking compilation).


The article is literally talking about `_Static_assert`, yes. It's used in the code examples and described in the text.




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

Search: