4 ms·
On the other hand, the C++ way gives you an actual type for each element of the sum; you can write a function which only takes AddExpr. The Rust way doesn't (ye
by twic 9y ago
On the other hand, the C++ way gives you an actual type for each element of the sum; you can write a function which only takes AddExpr. The Rust way doesn't (yet).
- saghm 9y agoGiven that you have to define those types manually, I don't see why you couldn't do the same in Rust; it just doesn't force you to if you don't need it