logoalt Hacker News

tialaramextoday at 12:30 PM3 repliesview on HN

If you write correct Rust code it'll work, the borrowck is just that, a check, if the teacher doesn't check your homework where you wrote that 10 + 5 = 15 it's still correct. If you write incorrect code where you break Rust's borrowing rules it'll have unbounded Undefined Behaviour, unlike the actual Rust where that'd be an error this thing will just give you broken garbage, exactly like a C++ compiler.

Evidently millions of people want broken garbage, Herb Sutter even wrote a piece celebrating how many more C++ programmers and projects there were last year, churning out yet more broken garbage, it's a metaphor for 2025 I guess.


Replies

jjgreentoday at 3:43 PM

It is possible to like something without hating people who like something else, can't people just live and let live?

ozgrakkurttoday at 12:34 PM

I have been using kde for years now without a single problem. Calling cpp garbage sounds wrong.

ameliustoday at 12:39 PM

People don't want garbage. But in any case, they don't want straightjackets like the borrow checker.

Hence, they use GC'd languages like Go whenever they can.

show 2 replies