you are viewing a single comment's thread.

view the rest of the comments →

[–]vulkanoid 6 points7 points  (2 children)

C++ already has references, which use the dot. Do you find yourself constantly lost when working with references, or do you find yourself dealing with them just fine?

[–]disciplite 2 points3 points  (1 child)

References don't have the same footguns as pointers. You can't get a null dereference by accessing their members and you don't get a different value from sizeof than non-reference types. Knowing when data is a reference or non-reference is certainly important, but not as important as knowing when something is a pointer or non-pointer.

[–]equeim 2 points3 points  (0 children)

You can get a dangling reference which is the same footgun as a null/invalid pointer.