logoalt Hacker News

you_can::turn_off_the_borrow_checker

45 pointsby strikinglast Friday at 8:31 PM14 commentsview on HN

Comments

rurbantoday at 2:04 PM

Even more unsafe rust, great!

extraduder_iretoday at 1:13 PM

Cool idea. I was expecting more than just turn_off_the_borrow_checker in you_can though.

Maybe with time, as more counterexamples are needed for things "you can't just..." in rust.

himata4113today at 1:03 PM

I usually just box it and then Box::into_raw when I need multiple mutable references in a singlethreaded application where there's no deallocation or cleanup has to occur post shutdown.

EFLKumotoday at 1:08 PM

though said for education purpose, keep finding these boundary-pushings playful. I can recall early days arrested by "several ways to access private members in C++" lol

show 1 reply
space_ghosttoday at 1:03 PM

This reminds me of Perl's ACME modules and I'm here for that.

codedokodetoday at 1:06 PM

Macros can secretly add "unsafe" blocks into the code?

show 3 replies
orpheatoday at 12:35 PM

Disgusting. I love it.