Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
steveklabnik
on Sept 24, 2018
|
parent
|
context
|
favorite
| on:
If You're Not Writing a Program, Don't Use a Progr...
> 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.
drchickensalad
on Sept 25, 2018
[–]
I think the intention was that if you have no mut refs, then you have no borrow checker problems.
steveklabnik
on Sept 25, 2018
|
parent
[–]
That’s not true. You still have things like dangling pointers being checked for.
zackmorris
on Sept 25, 2018
|
root
|
parent
[–]
Ok thanks for the followup, it was something I heard but hadn't tried in practice.
steveklabnik
on Sept 25, 2018
|
root
|
parent
[–]
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:
This is not correct. The borrow checker applies to references, both mutable and immutable.