<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Comptime on PlumePHP</title><link>https://plumephp.com/tags/comptime/</link><description>Recent content in Comptime on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sat, 26 Sep 2026 09:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/comptime/index.xml" rel="self" type="application/rss+xml"/><item><title>Zig 编译期编程：comptime 深度指南</title><link>https://plumephp.com/zig-comptime-programming/</link><pubDate>Sat, 26 Sep 2026 09:00:00 +0800</pubDate><guid>https://plumephp.com/zig-comptime-programming/</guid><description>&lt;blockquote&gt;
&lt;p&gt;comptime 让 Zig 拥有了远超 C 语言的编译期计算能力，又避免了 C++ 模板元编程（TMP）的晦涩语法与高昂心智负担。在 Zig 中，编译期执行的代码与运行时代码使用&lt;strong&gt;同一种语言&lt;/strong&gt;——没有模板特化语法、没有 SFINAE、没有 constexpr 函数与普通函数之分，只有一个显式的 &lt;code&gt;comptime&lt;/code&gt; 关键字。&lt;/p&gt;</description></item></channel></rss>