News for hackers. Stuff that matters.
Re:Type Systems Explained with Examples by ealhad on Tuesday September 29, 2020 @04:49AM (#24625397)
In Rust, you have a Cow. It's smart and allows you to clone borrowed things, including things which can moo.
Re:Type Systems Explained with Examples by Joker_vD on Tuesday September 29, 2020 @06:36AM (#24626023)
But only clones on write, which is a useful optimization.