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

D does this. Although it's not necessarily one or the other. C++ has the c preprocessor, templates, and constexpr. Rust has macros, but is looking at adding const function evaluation too.


const fn has already landed, though a minimal version whose powers we are expanding upon almost every release.




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

Search: