Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: