Hacker News new | ask | show | jobs
by pornel 4723 days ago
• Modules are on the way: http://clang.llvm.org/docs/Modules.html

• Check for overflow would be awesome indeed.

• Undefined behavior avoids massive performance penalties on hardware that wouldn't match the defined behavior, so it's a feature and unlikely to go away (compilers may warn you though).

1 comments

> Modules are on the way: http://clang.llvm.org/docs/Modules.html

Yeah, with luck they will be part of C++17, you just need to wait 4 years for them to be defined and then around 5 more for all major compilers, across all OS to support them.

They are not even being discussed for the next C standard, and thus similarly to C blocks, it will remain a clang language extension.