Better HN
topnewbestaskshowjobs
Log inSign up

throwaway18373

1 karma · joined Aug 2, 2025 (1y ago) · 2 submissions

Submissions

comment 1y ago · link · parent

To be able to disregard efficiency in one's life is a privilege—one that is not afforded to most.

comment 1y ago · link · parent

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.