Hacker News new | past | comments | ask | show | jobs | submit login

Okay, but why could a static language not have variadic functions?



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.




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

Search: