View Single Post
Old Apr 30th, 2005, 2:48 AM   #1
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6 bl00dninja is on a distinguished road
references vs. pointers

in my microscopic experience with C++ i am wondering how much REAL programmers (like IR and eggbert) actually use references as opposed to pointers. it seems so limiting to have references with SLIGHTLY cleaner syntax with MAJOR problems like being unable to be re-assigned and not being able to be NULL. do you guys really use them? i understand it's a little better than using parens and asterisks all over the goddamn place but is it really useful? examples would be nice. the way my ignorant mind sees it now is "fuck references" use pointers. is it really better?
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote