U+1F914 🤔 to Rust@programming.devEnglish · 3 days agoCall for testing: Restricting trait implementability and field mutability | Inside Rust Blogblog.rust-lang.orgexternal-linkmessage-square3linkfedilinkarrow-up125arrow-down10cross-posted to: [email protected]
arrow-up125arrow-down1external-linkCall for testing: Restricting trait implementability and field mutability | Inside Rust Blogblog.rust-lang.orgU+1F914 🤔 to Rust@programming.devEnglish · 3 days agomessage-square3linkfedilinkcross-posted to: [email protected]
minus-squarenialv7linkfedilinkarrow-up5arrow-down1·3 days agoSo basically language support for sealed traits and reducing need for getter functions. Kinda neat but not that significant.
minus-squareKillTheMule@programming.devlinkfedilinkarrow-up2·1 day agoAs mentioned in the article, it enables scenarios that getters/setters can’t because of the borrow checker.
minus-squareBB_C@programming.devlinkfedilinkarrow-up2·3 days agoYes and no. And you clearly missed the enums part.
So basically language support for sealed traits and reducing need for getter functions. Kinda neat but not that significant.
As mentioned in the article, it enables scenarios that getters/setters can’t because of the borrow checker.
Yes and no.
And you clearly missed the enums part.