Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Tarion
Dec 1, 2014
1.5 is out and 'cargo install' seems pretty cool.

Adbot
ADBOT LOVES YOU

Tarion
Dec 1, 2014

Jsor posted:

Gee, thanks, Rust, I learned so much. It's a good thing 98% of your Rust bugs the compiler catches, and 1.5% are logic errors that result in incorrect computations. Runtime panics happen so rarely this is at least tolerable. I can mostly get around it by always using expect instead of unwrap and making sure each possible panic has a unique error message.

You're not really supposed to use unwrap in 'production' code anyways.

Tarion
Dec 1, 2014

Deus Rex posted:

Sure you are. Maybe not as much, or in all the same ways, as when you're hacking together a prototype, though.

Ideally, you would have production code that doesn't allow panics to get to the user. That would be a more nuanced way of saying what I originally did.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply