@[email protected] to Programmer [email protected] • 28 days agorace conditionslemmy.zipimagemessage-square84fedilinkarrow-up1779
arrow-up1779imagerace conditionslemmy.zip@[email protected] to Programmer [email protected] • 28 days agomessage-square84fedilink
minus-square@[email protected]linkfedilink35•28 days agoWhy is the crab not Rust. This is outrageous, it’s unfair
minus-square@[email protected]linkfedilink29•edit-228 days agoRust would be some borrow checker compile error like borrowed data escapes outside of associated function argument requires that `'1` must outlive `'static`
minus-square@[email protected]linkfedilinkEnglish1•27 days agoNot in safe Rust. Only if you explicitly tell the compiler “I got this, don’t worry” but then fuck up.
minus-square@[email protected]linkfedilink0•27 days agoI guess they fixed the weirdness involving calling main later in the program
minus-squareEpheralinkfedilinkEnglish1•27 days agoAs in, you call main() recursively? Don’t think, I’ve ever tried that in any language…
minus-squareEpheralinkfedilinkEnglish8•28 days agoThose also happen to be errors you’d typically run into, if you don’t yet really know Rust…
minus-square@[email protected]linkfedilink2•edit-227 days agoI do run into them even though I use Rust for ~3 years now, but only in non-obvious cases, e. g. when all references to the borrowed data are dropped before the end of the function.
minus-square@[email protected]linkfedilink13•28 days ago News at Ten: Borrowed Data Escapes Outside of Associated Function
Why is the crab not Rust. This is outrageous, it’s unfair
Rust would be some borrow checker compile error like
you can still segfault in rust iirc
Not in safe Rust. Only if you explicitly tell the compiler “I got this, don’t worry” but then fuck up.
I guess they fixed the weirdness involving calling main later in the program
As in, you call
main()
recursively? Don’t think, I’ve ever tried that in any language…https://github.com/Speykious/cve-rs
rust errors are funny if you don’t know rust
Those also happen to be errors you’d typically run into, if you don’t yet really know Rust…
I do run into them even though I use Rust for ~3 years now, but only in non-obvious cases, e. g. when all references to the borrowed data are dropped before the end of the function.