4 ms·
I'm about 2 years into primarily writing Rust (after a long time in the .NET world). The borrow checker slowed me down a lot at the start but these days it's n
by ripley12 3y ago
I'm about 2 years into primarily writing Rust (after a long time in the .NET world).
The borrow checker slowed me down a lot at the start but these days it's not a big deal. Eventually you internalize the easiest ways to make it happy (clone and pass references as needed) and can reserve tricky optimizations for hot paths where they actually matter.
I would say that today, most of the times I sit down to write some Rust I'm nearly as productive as in higher-level languages... but then ~20% of the time I get bogged down in complicated type signature stuff (especially with async code, ugh) and it's a time suck.
- bfrog 3y agoRight, its maybe just a little less productive than something like Java because you do have to work out types a bit more and think about memory a bit more. The end benefit tends to be though that... your code compiles, and it just works. So maybe a little more time up front, for, potentially, less time down the road debugging.