5 ms·
C++ isn't full of cruft, it's full of features. Many of those features apply only to a small niche, but those all those small niches add up to become an audienc
by alextgordon 12y ago
C++ isn't full of cruft, it's full of features. Many of those features apply only to a small niche, but those all those small niches add up to become an audience.
Much of the "cruft" of C++ stems from the template system. Rust has very sensibly decided not to go down that path. But aren't you happy that one language has sacrificed itself so that we can express ideas like this...
template<typename T, size_t A, size_t B, size_t C>
Mat<T, A, C> matmul(const Mat<T, A, B>& left, const Mat<T, B, C>& right) {
...
The actually useless features like exported templates and trigraphs, are removed.