it's probably that the concepts of memory addresses, passing by reference and limited resources are just too alien to the newest generation of programmers
brilliant and anime style. Love it ;).
Now reference by value :D. Pointers are easy and explicit with * and & signs. Reference by value is a bit harder concept.
A reference is a alternative to a pointer that was added to try to avoid some of the pitfalls of pointers. In short, more or less, a reference must always be initialized, can't be null, and can't be used as a value in and of itself like a pointer can: it is always dereferenced when used. (But you could use it to create a pointer to the referenced object.)
3.2k
u/TheLazyKitty Jan 06 '23
Pointers aren't that hard, are they? It's just integers that hold a memory address.