Hacker News new | ask | show | jobs
by shikck200 20 days ago
Rust's killer features is not "the borrow checker". That idea was just stolen from Cyclone. Rust is basically a semi ml kind of language in the c++ space. I dont see many "killer features" in rust outside the saner type system.

Its basically a better language for software you write in C at the cost of horrible compile times.

2 comments

The killer feature is definitely memory safety in a systems programming language. That was pretty much thought impossible before Rust came along, and even today there is essentially no competition offering both memory safety and C performance, which requires no GC really.
> Rust's killer features is not "the borrow checker". That idea was just stolen from Cyclone.

Rust's borrow checker is significantly more usable than whatever existed before it, including Cyclone regions. One of Rust's innovations is the idea of reborrowing, which enables you to apparently use a mutable borrow more than once - in reality it's desugared as only one use at a time. Indeed Idris 2 for example has borrowing, but doesn't have reborrows, so it sucks