When I first discovered rust I immediately liked the concept of the language.
(The people developing rust are doing a good job.)
There is only a little point that seams inconsistent within the language, at least for me.
When You learn the language You will run into the case where the program does panic.
I don’t critisize that it panics, it makes sense when it does.
This possibility for for the program to panic should be more obvious to the programmer.
Like if all functions that may panic have a “_panic” extension to their name.
If You are a C++ programmer like me and try to get knowing rust these panics make You feel that You just left the minefield of c++ bugs (heap corruption, access violation …) and went into the panic minefield.
This would also help when doing peer reviews, to help to focus the attention on points
that may cause problems. This could also bring the habit into code to extend dangerous functions like that.
So my Question are:
Why functions that may panic don’t have an explicit extension to their name, so that they can be identified easily ?
Is there a complete list of functions in std that may cause a panic ?