<story><title>Why Zig When There Is Already C++, D, and Rust?</title><url>https://ziglang.org/learn/why_zig_rust_d_cpp/</url></story><parent_chain><item><author>AndyKelley</author><text>I don&amp;#x27;t know why this article keeps showing up on HN every other year but since it&amp;#x27;s up, I took the time to read it and fix all the outdated facts.&lt;p&gt;Notably, when it was written before there was not a package manager available. Now there is, so I rewrote that section. It should finish deploying in a couple minutes.</text></item></parent_chain><comment><author>david2ndaccount</author><text>Since you’re updating it anyway, the very first example says &amp;quot;D has @property functions, which are methods that you call with what looks like field access, so in the above example, c.d might call a function.”&lt;p&gt;It is true that `c.d` might call a function, but it’s not because of @property functions (which exist but are discouraged), it’s because the parens are optional to call a function&amp;#x2F;method if there are no arguments.</text></comment>
<story><title>Why Zig When There Is Already C++, D, and Rust?</title><url>https://ziglang.org/learn/why_zig_rust_d_cpp/</url></story><parent_chain><item><author>AndyKelley</author><text>I don&amp;#x27;t know why this article keeps showing up on HN every other year but since it&amp;#x27;s up, I took the time to read it and fix all the outdated facts.&lt;p&gt;Notably, when it was written before there was not a package manager available. Now there is, so I rewrote that section. It should finish deploying in a couple minutes.</text></item></parent_chain><comment><author>brabel</author><text>Probably because it&amp;#x27;s a sort of call to arms to those languages to try and improve things where Zig is currently on top :D.
Some of those can&amp;#x27;t be fixed (e.g. hidden control flow, hidden allocations) but some can (e.g. I think D has an alternative allocator API, it can now compile C&amp;#x2F;C++ code as well, and I believe its package manager is trying to add support for system dependencies as well).</text></comment>