Remix.run Logo
bschoepke 2 hours ago

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.

hn_submit 2 hours ago | parent | next [-]

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.

margorczynski 2 hours ago | parent | prev | next [-]

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.

uecker 37 minutes ago | parent [-]

Somehow, magically, some people managed to write C software that I now use for three decade with not a single crash in all this time.

slopinthebag 26 minutes ago | parent | prev | next [-]

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

Ar-Curunir 2 hours ago | parent | prev [-]

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

Also better defaults.