36
you are viewing a single comment's thread
view the rest of the comments
[-] taladar@sh.itjust.works 2 points 2 years ago

There are a few very questionable things in there. Unwrap should literally never appear in production code so if your code base uses it so often that you want a short-hand syntax for it that calls into doubt everything else you wrote.

[-] 5C5C5C@programming.dev 3 points 2 years ago

I do think that specific point is catering too much to sloppy get-it-done-fast-and-don't-think developers. It's true that they are Rust's most untapped demographic, and the language won't reach the pinnacle of mainstream usage without getting buy-in from that group, but I really think they'll be won over eventually by everything else the language and ecosystem offers, and .unwrap() won't be such an unreasonable price for them to pay in the long run.

load more comments (10 replies)
this post was submitted on 24 Jun 2024
36 points (90.9% liked)

Rust

8320 readers
19 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS