Hey Rustaceans! Got a question? Ask here! (14/2022)!

I don't mean stuff like concurrency, object lifetimes, etc. I mean simple things like errors. Exceptions are all over the place, but they're totally opaque to the developer. Documentation is extremely lacking, and my coworkers said to find what exceptions are thrown we just go through the code manually. I'm sure there are better ways, but the language itself makes it as hard as possible to know something as simple and important as what potential errors could happen.

I find Rust to be far easier because it tells you very clearly when something is wrong and why. IMO it's the difference between being in a long term relationship with someone who is a good communicator vs the type of person who just gets mad and says "you should know, and if you don't then I won't tell you". The former is far, far easier, even if that person is a more complex individual.

Rust, to me, seems minimal, very few "this is a convention you should just know", and an extremely clear communicator. Reading an error message, taking 15 minutes to learn about some new concept, and fixing it right away is a lot less time consuming that what I've experienced with Java, C#, or Kotlin.

/r/rust Thread Parent