Conversation
Dev Opinion-Seeking
Show content
@IceWolf
The "fighting the compiler" thing will only really happen in the first 2-4 weeks. It's only an issue until you got behind the logic of the borrow checker. Also the error messages are pretty detailed and you can let the compiler explain the mistake you made
@faoluin
1
0
0
Dev Opinion-Seeking
Show content
@IceWolf @faoluin
Also about the "reasonable defaults". Most of the panics happen because of the usage of .unwrap().
If you use .unwrap_or_default(), for example, it will return the default value defined for that type via the "Default" trait (or just use "match" or "if" to handle the result properly)
0
0
1