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

Not at all. Some things are fundamentally unsafe. mmap is inherently unsafe, but that doesn’t mean a library for it shouldn’t exist.

If you’re thinking of higher level libraries, involving http, html, more typical file operations, etc, what you’re saying may generally be true. But if you’re dealing with Direct Memory Access, MCU peripherals, device drivers, etc, some or all of those libraries have two options: accept unsafe in the public interface, or simply don’t exist.

(I guess there’s a third option: lie about the unsafety and mark things as safe when they fundamentally, inherently are not and cannot be safe)



Yeah I didn’t want to get into the weeds about inherently unsafe stuff, since the OP was about an XML parser




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

Search: