I want autoclone for those types but I want to be able to opt out per crate (my position since 2014 and I'm sticking to it)
-
-
Replying to @wycats @withoutboats
A finer grained epoch-like per crate mechanism for this sounds pretty neat tbh.
1 reply 0 retweets 0 likes -
I _think_ "copy semantics for Rc and Arc" isn't hard to hack together might try a poc compiler patch later.
1 reply 0 retweets 0 likes -
Replying to @ManishEarth @wycats
The surface API is `unsafe trait AutoClone: Clone { }`.
1 reply 0 retweets 1 like -
Replying to @withoutboats @wycats
Yep that is what I'm thinking, except it's an autotrait somehow. The autotrait part is tricky with the bound so I can ignore it for poc.
2 replies 0 retweets 0 likes -
Replying to @ManishEarth @wycats
It shouldn't be an autotrait - Copy isn't.
2 replies 0 retweets 0 likes -
Replying to @withoutboats @ManishEarth
Strong confirm. I was strongly in favor of that change after getting bitten hard by the pedagogy of OIBIT Copy over and over.
1 reply 0 retweets 1 like -
-
-
Replying to @wycats @withoutboats
one day I'll make everything an oibit and all the haters will PAY
1 reply 0 retweets 0 likes
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.
