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

Unlike C/C++, Zig is not inherently memory-unsafe.

Where Rust insists on having either partial safety through the checker or lack of control in unsafe code, Zig provides a toolkit for contructing safe frameworks. Zig also doesn't have main sources of unsafety coming from certain C design mistakes.

Besides, if you are after true memory safety then garbage collection is the way to go.



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

Search: