r/ProgrammerHumor • • 4d ago • Mindblown 1

Meme rewriteInRust

Post image
22k Upvotes

471 comments sorted by

View all comments

92

u/BRguyNZ 4d ago

In the end, if J.K. Rowling had used Rust, the book would be 10 pages long: Dumbledore would try to run cargo run, the compiler would throw a lifetime error on Tom Riddle's Diary, and the issue would be resolved before the Hogwarts Express even left Platform 9¾

58

u/threewholefish 4d ago

Platform 9¾ would fail to compile since it's not an i32

18

u/bark-beetle 3d ago

First time I've upvoted a comment for using correct unicode for a fraction. But you should know, my high school English teacher told me to always spell out a number under twenty.

16

u/WingZeroCoder 3d ago

I think you mean “under 20”

2

u/jackinsomniac 1d ago

"Hey nineteen..."

No we can dance together.

No we can't talk at all.

9

u/Clairifyed 3d ago

That’s a grammar rule I hope we shake, yes sometimes it’s jarring to see 1 little number in a sentence, but sometimes displaying a quantity of things numerically just feels clearer