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

C++ has the same basic thing but in a better way with `if constexpr`. There you're opting in to lazy evaluation and can scrutinize it better without having all your branches everywhere be lazy evaluation such that wrong code is allowed.


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

Search: