3 ms·
It's useful in Rust where you might parse input as a string and then convert it to a number. It's better than having a variable named age and another one named
by adhamsalama 2y ago
It's useful in Rust where you might parse input as a string and then convert it to a number.
It's better than having a variable named age and another one named age_num or the opposite, str_age and age.
- michaelmior 2y agoI guess that's fair. I haven't seen that pattern in Rust before and I don't think I particularly like it, but I can see why some might.