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

Absolutely, and that's a big step forward to writing code that will silently do bad things on a different platform. I use that technique on my current project to assert a load of things that I know are true.

It doesn't get you as far as the ideal goal which is to write code that will silently work on another platform. Static asserts mean that you then have to go and write more code when they happen.



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

Search: