News for hackers. Stuff that matters.
Re:Guide to Error Handling in Rust by nsteel on Monday August 26, 2024 @08:34AM (#41356505)
Given that `Interface` is "A wrapper around a string that is guaranteed to be a valid D-Bus interface name", it's not surprising that derefering it would provide the underlying `String`. And then it's “deref-coerced” for you into &str. &str and &String are different types but it's not a conversion between arbitrary types. It's definitely not magic. Personally, I think it is reasonable and quite helpful. It would be a shame if this was the whole reason you gave up on Rust 5 years ago, I hope it wasn't!
Re:Guide to Error Handling in Rust by nick__m on Tuesday August 27, 2024 @08:24AM (#41366765)
That and the always changing crates required since the std lib was anemic and the stupidily long compilation time.

But I must admit that Cargo and clippy were nice and lifetime are easier to understand than when using std::move in c++ is required vs when it's implicit.

But really what made me abandon learning Rust is Nim. My first Nim program I made a small maze game in about 200 lines.

Also the fact that I now mostly program recreationally since I pivoted from software development to infrastructure ( my title is system analyst) at a research University (absolute job security is really nice). Software development at that institution was getting to political to my taste and I like to play with nice hardware!