Nemeski@lemm.ee to Rust · 9 hours agoAnnouncing Rust 1.84.1blog.rust-lang.orgexternal-linkmessage-square6fedilinkarrow-up124arrow-down10cross-posted to: [email protected]
arrow-up124arrow-down1external-linkAnnouncing Rust 1.84.1blog.rust-lang.orgNemeski@lemm.ee to Rust · 9 hours agomessage-square6fedilinkcross-posted to: [email protected]
minus-squareulternolinkfedilinkEnglisharrow-up0·4 hours agoIsn’t it already optional? Just put unsafe on everything?
minus-squareKillTheMulelinkfedilinkarrow-up4arrow-down1·4 hours agounsafe does not disable the borrow checker. It does however give you abilities to circumvent it, namely by letting you dereference pointers, which are not subject to the borrow checker.
minus-squareulternolinkfedilinkEnglisharrow-up1·4 hours agoOIC. I really need to start learning this language soon, or I won’t be able to understand future memes and rants.
Isn’t it already optional? Just put
unsafe
on everything?unsafe
does not disable the borrow checker. It does however give you abilities to circumvent it, namely by letting you dereference pointers, which are not subject to the borrow checker.OIC. I really need to start learning this language soon, or I won’t be able to understand future memes and rants.