Re:Cdecl: C Gibberish ↔ English
by emmanueloga_ on Saturday April 23, 2022 @01:42PM
(#31136412)
what's stopping a new version of C from defining a better declaration syntax? (better = easier to read, write and understand)
[ Parent
| on HN ]
Re:Cdecl: C Gibberish ↔ English
by RTFM_PLEASE on Saturday April 23, 2022 @08:19PM
(#31140040)
1) 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.
You 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.