News for hackers. Stuff that matters.
Re:Ask HN: How is the job search coming along for people who... by EmilyHATFIELD on Tuesday December 06, 2022 @01:56PM (#33885194)
Why would using pointers be better than references ? At least a reference cannot be null?
Re:Ask HN: How is the job search coming along for people who... by CWuestefeld on Wednesday December 07, 2022 @05:34PM (#33901315)
Well, at the time I was doing that, it was actually for a C and not C++ job, so &references weren't even a thing. But my point wasn't that using the ampersand is wrong - just that if that's how you describe what you're doing, you probably don't have a very strong foundation in how the language really works.