EXCELLENT!
EXCELLENT!
Posted Jul 12, 2022 9:19 UTC (Tue) by khim (subscriber, #9252)In reply to: EXCELLENT! by Subsentient
Parent article: Rust frontend approved for GCC
> could be even better if people would put in the time for e.g. non-cyclical self-referential structures in the borrow checker
Please don't. This would require addition of move constructors and this way lies madness. Use pin in rare cases where it's needed.
I rather hope they would replicate Swift's approach to ABI stability and dynamic libraries support and supporting moveable self-referential structures would make everything immensely compilicated.
Note that Rust people have noticed Swift achievement but instead of just making dyn Trait as capable of impl Trait they think about how to add more hacks to dyn Trait. I really hope it wouldn't happen and they would just borrow Swift approach.