I think we can all agree that `Cow` is the most under-used part of @rustlang. Today (April 1 UTC) I am proposing a path for us to export this beautiful type in preludehttps://github.com/rust-lang/rfcs/pull/2672 …
-
-
On that note, would it be possible for rustc to optimize the std Cow<[T]> | Cow<str> to be 3 words instead of 4? You can use capacity (0 or !0) instead of the tag to differentiate between owned and borrowed values, like the cowvec crate does.
1 reply 0 retweets 0 likes
Replying to @MaciejHirsz @rustlang
I think we can optimize it further to one word: "moo"
8:14 AM - 1 Apr 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.