• jjj@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 hours ago

    Yes, but the tools provided by Rust:

    1. Prevent most common ones via aliasing^mutability, Send and Sync marker traits, etc.
    2. Require explicitly marking the cases not handled by this, e.g. unsafe features require an unsafe {} block to be used.