3 ms·
The author seems to want to not use unwrap() in the rust version when that is basically what is done in the python version. The python version will die with an
by cowsandmilk 9y ago
The author seems to want to not use unwrap() in the rust version when that is basically what is done in the python version. The python version will die with an exception if:
1) the file does not exist
2) the file is not readable
3) the file cannot be parsed
Rust forces you to say you want to panic in these cases (by using unwrap), but beyond that, the behavior is similar.