News for hackers. Stuff that matters.
Re:My Struggles with Rust by MikkoFinell on Sunday May 07, 2017 @01:09PM (#14286357)
I cant even opt out of using exceptions? Good thing I didn't waste my time with this lang.
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.
Re:My Struggles with Rust by caconym_ on Sunday May 07, 2017 @01:41PM (#14286506)
Exceptions don't exist in Rust.
Re:My Struggles with Rust by guipsp on Sunday May 07, 2017 @01:27PM (#14286442)
expect is panic, not an exception