3 ms·
> It would certainly lower the barrier to entry in learning C++ if this was an unfounded concern. If the Javascript community, which is as fragmented as C++, i
by oblio 9y ago
> It would certainly lower the barrier to entry in learning C++ if this was an unfounded concern.
If the Javascript community, which is as fragmented as C++, if not more, could introduce "strict" mode and enforce it basically everywhere, then maybe C++ could do the same thing.
Have C++20 recommend a certain subset of C++, have C++24 warn as deprecated features not in this subset, have C++30 error out on everything outside this subset, unless the compiler is set to compatibility mode and finally have C++40 refuse to compile the old code.
- DoofusOfDeath 9y agoI'll take your word for it regarding JS, but I was thinking along the same lines w.r.t. C++ deprecation. Alternatively, one could take a page from CMake's playbook with "policies" [0]. [0] https://cmake.org/cmake/help/v3.7/manual/cmake-policies.7.html#cmake-policies-7 https://cmake.org/cmake/help/v3.7/manual/cmake-policies.7.ht...
- oblio 9y agoECMAScript 6 modules are in strict mode only: https://stackoverflow.com/a/31685340/1320143 https://stackoverflow.com/a/31685340/1320143 I think C++ is getting modules, maybe they could do the same thing?