You always care if its null. If something bad happens the calling function may need to abort. So the if statement is important to know if you have to abort or not.
Exceptions elegantly solve this problem. The Rust mechanism, since it doesn't interrupt execution, actually seems to make things more complex.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You always care if its null. If something bad happens the calling function may need to abort. So the if statement is important to know if you have to abort or not.
Exceptions elegantly solve this problem. The Rust mechanism, since it doesn't interrupt execution, actually seems to make things more complex.