Hacker News new | ask | show | jobs
by xigoi 581 days ago
Okay, but why could a static language not have variadic functions?
1 comments

That's their design choice.

I can think of a few reasons

- makes function calling simpler

- faster compilation

- less symbol mangling

- makes grepping for function implementation easier

If for some reason you think you absolutely can't live without variadic functions, maybe don't use zig.