WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 33104660

(no title)

Zen1th | 3 years ago

You can string format using `std.fmt.comptimePrint`[1]. For example, combined with features like `@compileError`[2], it allows you to make your own error messages (useful for generic functions)

[1]: https://ziglang.org/documentation/master/std/#root;fmt.compt... [2]: https://ziglang.org/documentation/master/#compileError

discuss

order

No comments yet.

powered by hn/api // news.ycombinator.com