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

C++20 concepts are a step in the right direction, but:

- D had this feature long before C++ did.

- It isn't the same thing as "static if". Without "static if", conditionally compiling variables into classes is much more elaborate, basically requiring subclassing to do, which is not really semantically how subclassing should be used (the result is also way more confusing and oblique than the equivalent directly expressed construct you'd have using "static if").



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

Search: