Hacker News new | ask | show | jobs
by quicklime 1945 days ago
How did you answer the question? I would hope that something like the following would've been an acceptable answer:

> Oh, that was a learning project (or prototype code). If I were to write this code again, I would do $X

...where X is something like "use a unique ptr" or "assign ownership of this object to this other object instead".

1 comments

I said almost exactly that.