<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>olodus</author><text>I love Zig and have played around a bit with it this summer. I do really wish the standard library was better documented though. Think I saw that would be coming soon though so i hope I&amp;#x27;ll have a even better time with it when I come back to it next time. I would call myself an intermediate programmer with ok knowledge of C and it was for me sometimes hard to understand how I would do some stuff in Zig. Most things are very much the same but with some small changes that I understand why they are there but trip over the differences when trying to do certain things. Besides stdlib documentation I would also want some better examples, but that is probably something that cones with larger adoption. I find Zig together with Rust as a really strong combo of languages that makes one hopeful for the future of system programing.</text><parent_chain></parent_chain></comment><story><title>What Is Zig&apos;s Comptime?</title><url>https://kristoff.it/blog/what-is-zig-comptime/</url></story>
<instructions>Your goal is to analyze the following comment and estimate how highly it will be upvoted by the Hacker News community.</instructions><comment><author>Siyo</author><text>While comptime looks extremely powerful, I&amp;#x27;m really not a fan of how it&amp;#x27;s used for unconstrained generics. This is the same problem I have with C++ templates where an incorrect use of a generic function would result in an explosion of bizarre undescriptive template errors. Sure you can write these type asserts yourself, but it&amp;#x27;s time consuming and how many developers will actually do it and get it right? I don&amp;#x27;t know, maybe it&amp;#x27;s really not that big of a deal, but I much prefer how Rust does this using traits as type constraints (although at some cost of complexity, e.g. Eq, PartialEq, Ord, PartialOrd). Not to mention that by using constraints on the type system level, you actually get useful type signature documentation on what you can or cannot pass to a function.</text><parent_chain></parent_chain></comment><story><title>What Is Zig&apos;s Comptime?</title><url>https://kristoff.it/blog/what-is-zig-comptime/</url></story>