Re:My Struggles with Rust
by sanderjd on Sunday May 07, 2017 @06:14PM
(#14288010)
You may have confused the method "expect" as being "except", as in "exception". That's not what it means - it means to "panic" with the given string as the error message. Panics in Rust have some similarities to exceptions in C++, but are not the same thing.
[ Parent
| on HN ]
There are no comments on this comment yet.