C++ profiles: a chance to fix some annoying defaults? Brainstorming and ideas.
Hello everyone,
Lately I have been thinking about the opportunity that profiles could give to C++ for "better defaults" and "cleanups".
Which profiles would you like to see in an eventually profile-enforced version as "standard" or "enabled by default" that you think can be fit reasonably?
I will start:
- ununitialized variables: must use [[indeterminate]]
- [[nodiscard]] by default? Would that be possible? Maybe this changes the meaning.
- hardened std lib guarantee?
- type safety/bounds safety (in user code)