178
submitted 6 days ago* (last edited 5 days ago) by Kissaki@programming.dev to c/rust@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] bitcrafter@programming.dev 2 points 4 days ago

What happens if you use an out of range array subscript a[n]? Does that always return an option type?

I think that you would be surprised by the amount you would learn if you spent five minutes actually trying to answer your own questions, instead of treating them as proof that you just made a relevant point merely by asking them.

this post was submitted on 25 Feb 2025
178 points (99.4% liked)

Rust

6451 readers
52 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 2 years ago
MODERATORS