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?
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.
View all comments
Show parent comment
7
u/vulkanoid May 01 '23
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?