A hobby project I've been working on for a few weekends. Picked it up because I've been wanting to learn Rust by writing something simple.
I've found a lot to enjoy about programming with Rust. Some minor complaints:
- The syntax does not always make clear whether copy or move will happen on assignment. You need to manually go look at the object signature to see if it implements copy. This bit me once or twice.
- std::time::Duration as_millis() returns a u128, but from_millis() requires a u64, so you have to cast.
- Rust object methods accept a &Self param, but this is hidden when you call it. This convention exists in other languages, so I'm not sure where it originated, but it is a minor irk for me that the function signature and call don't match.
carodgers•1h ago
I've found a lot to enjoy about programming with Rust. Some minor complaints:
- The syntax does not always make clear whether copy or move will happen on assignment. You need to manually go look at the object signature to see if it implements copy. This bit me once or twice.
- std::time::Duration as_millis() returns a u128, but from_millis() requires a u64, so you have to cast.
- Rust object methods accept a &Self param, but this is hidden when you call it. This convention exists in other languages, so I'm not sure where it originated, but it is a minor irk for me that the function signature and call don't match.