4 ms·
the frustrating thing for me has been trying to "port over" C++-isms or Python-isms both fail from one direction or another. I've found that data structures wi
by rtpg 3y ago
the frustrating thing for me has been trying to "port over" C++-isms or Python-isms both fail from one direction or another.
I've found that data structures with _lots of helper methods_ (thinking about things like `Result` in particular) tend to be nice. You do have to learn about Rust-specific things to figure out how to nicely structure your code for everything to work. But the payoff is less pain.
There are still a lot of futzy ownership questions, and even when you write out your supposedly performant and cool system, easy outs like cloning end up hiding in your system leading to some awkward performance questions. Fortunately the systems are merely slow, and it tends to show up in profiling.