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

I guess modules help this a little right? I haven’t used them for anything non-trivial so perhaps I’m overly optimistic.


That example has nothing to do with modules. It doesn't even use templates (where concepts would help at least) or the "noexcept(noexcept(...))" thing.

Modern C++ does help with most type specification, looping over containers, writing constructors and making value classes. It's definitely not all bad, but there's still a lot of boilerplate to C++.


Sorry, I was thinking of modules in response to

> C++ requires you to duplicate signatures in header files, which that alone requires a good degree of boilerplate.


Modules will definitely help but even modules unfortunately aren't perfect. You aren't allowed to have circular dependencies with modules, you need to forward declare. It's less boilerplate but still unfortunate imo.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: