TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

One Year of Rust

3 pointsby timfover 8 years ago

1 comment

EugeneOZover 8 years ago
&quot;Don’t use clone to avoid dealing with the borrow checker...There are few instances where it’s actually fine to use.&quot;<p>there is a lot of places where .clone() is the only way, especially for strings. Sometimes you can use reference, but sometimes you need value and there is nothing wrong with it.