Y
Hacker News
new
|
ask
|
show
|
jobs
by
john-h-k
295 days ago
You are borrowing the entire list. That’s fine. The problem occurs if you borrow a reference into the list. Java/C# solve this by making that operation impossible. You cannot hold a reference into a vector/list