Day 15 of learning Rust
A "u8" can hold values from 0 to 255.
But in wrapping arithmetic:
"255 + 10 = 9"
Why? Because it wraps around after 255.
Rust handles overflow differently depending on the operation and build settings.
Day 15/336. Learning in public.
commit 3037849
What is your main language? When I learn a new one, I like to compare the concepts to the main language I use, and I think it is really helpful.
Nice idea, learning in public! How are you going about learning rust? Just the RustBook or something else?