Nemeski@lemm.ee to Rust@programming.dev · 4 days agoAnnouncing Rust 1.84.1blog.rust-lang.orgexternal-linkmessage-square28fedilinkarrow-up170
arrow-up170external-linkAnnouncing Rust 1.84.1blog.rust-lang.orgNemeski@lemm.ee to Rust@programming.dev · 4 days agomessage-square28fedilink
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up1·4 days agoIsn’t it already optional? Just put unsafe on everything?
minus-squareKillTheMule@programming.devlinkfedilinkarrow-up13·4 days 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-squareulterno@programming.devlinkfedilinkEnglisharrow-up7·4 days 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.