I just listened to the excellent rustacean station episode 13.
There was a comment about some problems with
as for type casting numeric types. (Around 28:41)
- Do you use and see
asfrequently for converting between numeric types?
- If not, how do you do these conversions? Or what is the most common way you see these converted?
For context I am volunteering on the exercism V3 track and we introduce students to numeric types and type casting early on. I'm curious about real world use of this to inform that documentation and learning experience.
Any real project examples would be great. We are heavily referencing "The Book" as well.