3 ms·
Yes, it is pretty universally agreed upon that a ++ operator in Rust doesn’t make any sense. += 1 is barely longer, not special cased, and does not make users m
by steveklabnik 4mo ago
Yes, it is pretty universally agreed upon that a ++ operator in Rust doesn’t make any sense. += 1 is barely longer, not special cased, and does not make users memorize odd precedence rules.
- stasomatic 4mo agoIt doesn’t matter, I was speaking in terms of branding. There is ++ in C, but C is not C++.
- steveklabnik 4mo agoRight, but the whole reason C++ is named C++ is because ++ is a valid operator in C. Without the operator in Rust, making the brand of a successor based on a feature from an entirely different language doesn't make any sense.