3 ms·
I cant even opt out of using exceptions? Good thing I didn't waste my time with this lang.
by MikkoFinell 9y ago
I cant even opt out of using exceptions? Good thing I didn't waste my time with this lang.
- guipsp 9y agoexpect is panic, not an exception
- caconym_ 9y agoExceptions don't exist in Rust.
- sanderjd 9y agoYou 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.