Rust lets you do efficient reference-counted strings and dynamic arrays using Arc basically just as easily as their owning (and deep-cloning) equivalents, St...
Title should really be Arc<[T]> at first I was like Arc<T> makes no sense.
It’s a great video though. It’d be nice if the compiler / clippy could detect entirely non-mutable uses of data structures that could be switched like this.
Title should really be
Arc<[T]>
at first I was likeArc<T>
makes no sense.It’s a great video though. It’d be nice if the compiler / clippy could detect entirely non-mutable uses of data structures that could be switched like this.