logoalt Hacker News

ramon156yesterday at 11:20 AM2 repliesview on HN

Clone is not "butchering idiomatic Rust", we gotta stop this nonsense


Replies

pjmlptoday at 6:11 AM

Well, some of us rather use languages with automatic resource management in the type system, in whatever form, and thus avoid typing .clone() all over the place.

jdw64yesterday at 11:26 AM

Sorry, should clarify. .clone() itself isn't inherently unidiomatic when used .

My issue is specifically with how the AI uses it. In AI code, .clone() is almost always used as a brute-force escape hatch

show 2 replies