Need a rust version too.

MaliciousKebab@sh.itjust.works to Programmer Humor@programming.dev – 812 points –
92

You are viewing a single comment

Rust:

Cannot move princess out of castle which is behind a shared reference

It will also complain that trying to break into the castle is unsafe, so you have to tell it that you know.

"Alright, but you better be outside of a properly locked up and OSHA-compliant castle with the princess by the time I get back, or I'm not compiling"

And then you do that, but you miss a smoldering ember from one of the castles torches, and everything including the horse and princess catches fire. Next time, pick an escape plan that only requires unsafe for the drawbridge.

There's a totally safe way to do it too, I guess, but it involves building a series of replacement castles, and it's also totally ugly and sinfully slow.

1 more...

Just clone the princes and get on with your day.

1 more...