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 …
-
-
Replying to @yoshuawuyts
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
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
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 …
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
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 …
2 replies 0 retweets 1 like
@yoshuawuyts looking back at the exercises we did for our very first compsci class a few years back I can see why people dropped out. brutal
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.