News for hackers. Stuff that matters.
Re:Rust can be difficult to learn and frustrating, but it's ... by nevi-me on Monday October 22, 2018 @11:32PM (#18280538)
One of the challenges I'm having now is with some library that connects to a steaming pubsub server. I found a problem with the library, my use-case differs from what's being tested, and because I'm struggling to use the library the way the author suggests; I'm unable to convince them that being unable to Clone their data structure is causing a problem.

I unfortunately am not at the point of "X didn't work, so I wrote Y" as that's how we end up with competing libraries.

Re:Rust can be difficult to learn and frustrating, but it's ... by bluejekyll on Tuesday October 23, 2018 @09:50AM (#18283327)
Sometimes there are good reasons for not cloning, such as underlying resources that can’t be cloned. But I agreed it can be ergonomically easier in many cases. If they truly don’t want it, and you really don’t want to fork, can rewrapping it in an Arc<T> or Arc<Mutex<T>> get you around the problem?