News for hackers. Stuff that matters.
Re:Toward a TypeScript for C++" by uxp8u61q on Saturday November 04, 2023 @12:45PM (#38142697)
What antique part of the language am I using in this bugged code?

    class A {};
    std::unique_ptr<A> array(new A[256]);
It's very easy to produce innocuous-looking code that contains leaks. (And yes, I know that make_unique solves the problem here.)
Re:Toward a TypeScript for C++" by harrid on Saturday November 04, 2023 @01:05PM (#38142925)
new
Re:Toward a TypeScript for C++" by leptons on Saturday November 04, 2023 @12:54PM (#38142805)
At this point I'd rather just write assembly language.