logoalt Hacker News

bschoepkeyesterday at 5:59 PM4 repliesview on HN

Rust certainly helps for certain classes of errors but doesn't help at all for logic errors or incompletely understood requirements or occasional need for hacks due to business needs.


Replies

hn_submityesterday at 6:41 PM

Why is everyone always referring to logic errors when pushing back against Rust? No programming language ever invented (or to be invented) will fix logic errors made by developers.

Logic errors are "out of scope" for Rust or any other programming language.

show 1 reply
margorczynskiyesterday at 6:36 PM

It basically completely eliminates the most common class of errors which are bugs related to memory management. Hard numbers and statistics show that every application with enough complexity will be riddled with those.

It is simply impossible, even for the smartest human minds, to manage this kind of complexity. And this is a fact.

show 1 reply
slopinthebagyesterday at 7:55 PM

That's like saying a condom isn't 100% effective so you just use the pull-out method instead.

Ar-Curuniryesterday at 6:36 PM

It does help for logic errors too, with, eg, sum types and traits and abstraction.

Also better defaults.