Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"In D, objects are always allocated on the heap. ... <snip> ... So you can eliminate the -> operator. It's always obj.property and your code becomes that much easier to read."

I think one of the best reasons still to use c++ is your control over memory and the speed which you can only get when allocating objects on the stack. Maybe that was the sort of problem he was fighting with in c++, but for me it's an argument which would make D a worse choice than c++ for those tasks where I would use c++ now.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: