3 ms·
what's stopping a new version of C from defining a better declaration syntax? (better = easier to read, write and understand)
by emmanueloga_ 5y ago
what's stopping a new version of C from defining a better declaration syntax? (better = easier to read, write and understand)
- RTFM_PLEASE 5y ago1) 50 years of backwards compatibility. 2) It is not necessary. C's terse syntax is not hard to understand for anyone who actually uses the language. Most of the comments here are from people who do not.
- xigoi 5y agoYou can add new syntax without destroying backward compatibility, as long as it doesn't conflict with existing syntax. C++ took C and added the std::unique_ptr<int> syntax, which is much more readable.