4 ms·
To explain from another direction, and add to the replies you're getting that explain it directly, C++ is a language that does its best to not break existing co
by syncsynchalt 5y ago
To explain from another direction, and add to the replies you're getting that explain it directly, C++ is a language that does its best to not break existing codebases.
When they want to introduce a new concept (in this case, a way to express that using an implicit function or overload is forbidden) they use one of the already-reserved keywords ("delete"). This sometimes leads to a clunky reading experience, but is better than breaking anyone's code that happens to use a variable or function named "forbidden" or similar.
- TFortunato 5y agoYes, this part is super relevant to answer WHY it is written the way it is. C++ has a lot of nice ideas under the hood, but the syntax and reading experience definitely isn't ideal because of the desire for backwards compatibility (which includes the very strong desire to not introduce new keywords / tokens if there is any possible way to avoid it)