Wrote a lil cli number converter in Rust during my lunch break; uses recursion and type matching
https://github.com/yoshuawuyts/rust-cs50/blob/master/pset1/water.rs …
Rust doesn't have tail recursion for match (yet) tho; probably the better solution is to use a loop but matching 2 cool to not use
-
-
Created a stack safe version of my number parsing program. No recursion, but more correct https://github.com/yoshuawuyts/rust-cs50/blob/master/pset1/water-safe.rs …
-
Implemented a lil mario pyramid maker in Rust; nested pattern matching makes for icky code. Fully type safe tho https://github.com/yoshuawuyts/rust-cs50/blob/master/pset1/mario.rs …
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.