Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I haven't fully learned Rust yet but from what I understand, the borrow checker only applies to mutable data

This is not correct. The borrow checker applies to references, both mutable and immutable.



I think the intention was that if you have no mut refs, then you have no borrow checker problems.


That’s not true. You still have things like dangling pointers being checked for.


Ok thanks for the followup, it was something I heard but hadn't tried in practice.


No problem!




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: