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

How does one assert bar() or better yet, an arbitrary expression you place there, is pure?


Well, the compiler attempts to evaluate bar(), and if it cannot, you get a compile error




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

Search: