users.rust-lang.org/t/cloning-

Random frustration is always a learning opportunity!

users should remember that Errors can't get Clone'd! See this thread for explanation why.

@jonn I'm consistently impressed by how solid Rust's internal logic is. I'm often frustrated by it but it's never had a bad reason for the Why. Perhaps I'm just not deep enough yet. #RustLang #Rust

@arichtman @jonn Plenty of examples where you can understand the reasons they are not that good. Lending from an Iterator or a closure for example is not possible for example. Range is not Copy even if bounds are. Bounded Range is even worse...

Follow

@manpacket @arichtman what matters to me is that Rust is LESS permissive rather than MORE permissive.

@jonn @arichtman absolutely. And things are slowly getting better too, at least the Range gets fixed in the next version. I hope lending from closures can be fixed as well - right now you have to do some cursed workarounds.

The change to new Range types seems unlikely to land in the 2024 edition though, given that it's not very far along..

github.com/rust-lang/rust/issu

@manpacket @jonn @arichtman

Sign in to participate in the conversation
Doma Social

Mastodon server of https://doma.dev.