liberty

joined 4 months ago
[–] liberty@mathstodon.xyz 1 points 4 hours ago (1 children)

@SorteKanin @kewjo Fuzzing! Zig is working on an integrated fuzzer that will work seamlessly with the testing system.

And for those cases you don't catch, there's ReleaseSafe which have runtime checks to prevent illegal behavior.

Zig removes a lot of the footguns of C and also provides a lot of the tools you'll need anyway built-in. The debug allocator does leak-checking. You have to unwrap your nulls. There is compile-time duck-typing so generic data structures don't have to rely on void pointers. Also no separate preprocessor language.