HackerTrans
TopNewTrendsCommentsPastAskShowJobs

throwaway18373

no profile record

comments

throwaway18373
·hace 12 meses·discuss
To be able to disregard efficiency in one's life is a privilege—one that is not afforded to most.
throwaway18373
·hace 12 meses·discuss
You "write C++ every workday" and don't even know that moved-from objects are guaranteed to be valid?

> return references to local stack variables from functions

> use uninitiated variables

Any properly configured compiler will catch and warn about those errors.

> double-delete (or zero!)

Not a real issue if you're using smart pointers.

Sure, you can program with no compiler warnings and no smart pointers—but nothing is stopping you from wrapping your entire Rust program in "unsafe" and doing all those things there as well. Programming languages can only do so much to save people from their own incompetence.