logoalt Hacker News

asibahitoday at 12:45 PM1 replyview on HN

The Zig compiler compiles lazily and does not detect dead code. (Read: functions that are not called from any compiled functions)


Replies

robertlagranttoday at 12:59 PM

That makes total sense (though it would be nice if it could do that detected, I suppose), but what makes less sense to me is the accumulation of unnecessary code (and presumably unit tests for that code) that isn't removed as soon as it's no longer needed.

show 1 reply