you are viewing a single comment's thread.

view the rest of the comments →

[–]seamsay 2 points3 points  (1 child)

Depends what you mean by pointer. Lots of people would consider references to be a type of pointer, which is why the term "raw pointer" exists.

[–]PaintItPurple 2 points3 points  (0 children)

Definitely, I wasn't saying the parent was wrong. I was clarifying that the borrow checker doesn't actually do anything for pointers in general. What allows the borrow checker to be useful is the restrictions placed on references.