logoalt Hacker News

guywithahat • today at 2:44 AM • 1 reply • view on HN

I like this answer, plus we already have most of the memory features from a practical standpoint (C++ has had RAII since before Rust was a thing, and there are plenty of memory checkers out there). Perhaps the borrow checker is a future incoming feature but I think it would be a mistake to rush to add it.


Replies

pjmlp • today at 6:51 AM

Existing static analysers already achieve some lifetime analysis, however it is hard to go beyond what they do today without annotations.

Safe C++ proposal (based on Circle compiler) was refused, and I don't believe in profiles as they are being sold, but lets see.

➕ show 1 reply