4 ms·
I don't think of this as an idiomaticity guide.
by dnautics 5y ago
I don't think of this as an idiomaticity guide.
- gavinray 5y agoIt's unfortunately the only comprehensive reference I know of besides the official docs. There is "Ziglings", but those are a collection of small exercises with answers rather than a full guide. https://github.com/ratfactor/ziglings https://github.com/ratfactor/ziglings If you know of better resources than these two, please do share (not being passive aggressive here).
- dnautics 5y agohonestly, the standard library. But there should be an idiomaticity guide. At least for capitalization patterns, any other naming conventions, etc (things that zig fmt can't capture). I don't know that this officially exists, anywhere yet. Here is an example of what I'm talking about in my $DAYJOB lang: https://hexdocs.pm/elixir/naming-conventions.html#content https://hexdocs.pm/elixir/naming-conventions.html#content edit: see sibling comment, apparently I never noticed the style guide in the standard docs
- deleted 5y ago[deleted]
- cturtle 5y agoThe style guide in the language reference explains the accepted naming conventions [0]. [0]: https://ziglang.org/documentation/master/#Style-Guide https://ziglang.org/documentation/master/#Style-Guide