please critique my code :)
For learning rust I decided to hack on a simple roguelike. I'm coming from a mainly Java/C++ and it's my first attempt at doing something in Rust - I feel the code might not be as "rust"-y as it should be.
https://github.com/devilbuddy/rrl
I'd be happy if someone more experienced than me took a look at the code and gave me some feedback on what could be improved :)
Posted Dec 29, 2014, 8:15 PM UTC
Also you do matches on
Optionss a lot where you don't do anything if the value isNone. Recently a new syntax for this was introduced, you can use it like so:instead of:
you can use
if letsyntax:this is much shorter and does the same thing