Hacker News new | ask | show | jobs
by tapirl 24 days ago
Zig is indeed verbose in some aspects, but not overall. For example, its `try error-union` syntax eliminates a lot of boilerplate code.

The main reason why Zig is verbose in some aspects is the main goal of Zig is program performance. It is a worthy tradeoff.

1 comments

That goal doesn’t imply verbosity is necessary- just a style thing which is contrary to its goal of being a better C, given verbosity is the opposite of most C.
Performance alone doesn't always imply verbosity, but combining it with other goals—such as increased security and more power std APIs—often does.