3 ms·
Blaming you for unsafe code doesn't make code safer. Better systems over personal blame.
by devwastaken 4y ago
Blaming you for unsafe code doesn't make code safer. Better systems over personal blame.
- nyanpasu64 4y agoSafe languages have restrictions like immutability, garbage collection, or "one mutator at a time" (to ensure temporal safety) outside of deliberately-awkward escape hatches (some unsafe). These tradeoffs are often workable, but some applications require no GC pauses, or placement initialization and non-allocating intrusive linked lists, which can make languages with ergonomic manual memory management a better choice for those use cases. "Safe languages are better than having to write correct code" is a thought-terminating cliche that dismisses the complex tradeoffs and limitations of safe languages.