logoalt Hacker News

dminikyesterday at 11:46 PM1 replyview on HN

I wish languages made it easier (or possible) to track index ownership at compile time.


Replies

afdbcreidtoday at 1:17 AM

You can in Rust! You just bundle it with a lifetime.

But... This loses the reason people are using indices to begin with: because the borrow checker cannot track what they do.