|
|
|
|
|
by the_gipsy
1271 days ago
|
|
> it gives the impression that it's even possible to define functions that cannot fail Do you mean that e.g. an out-of-bounds error will panic? If that's the case, you can always access arrays/slices with some checked access, that will return a Result/Option and cannot panic. But it would be a PITA if you couldn't skip that. |
|