the naming of rust's `Copy` and `Clone` constantly throws me... i think of cloning something as being "more intense" than "just making a copy" (like cloning a sheep vs photocopying a document), and rust uses them the other way around:

almost anything can be `Clone` because it builds a new similar-ish object (like a photocopier)

but `Copy` uses bitblt to make the exact same object, and is much more restrictive

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!