<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>错误处理 on Mi&amp;Bee Blog</title><link>/tags/%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86/</link><description>Recent content in 错误处理 on Mi&amp;Bee Blog</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>蓝宝石的傻话</managingEditor><lastBuildDate>Tue, 23 Jun 2026 10:45:00 +0800</lastBuildDate><atom:link href="/tags/%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86/rss.xml" rel="self" type="application/rss+xml"/><item><title>错误处理:Go、Rust 之外的第三条路</title><link>/posts/programming/zig-error-handling/</link><pubDate>Tue, 23 Jun 2026 10:45:00 +0800</pubDate><guid>/posts/programming/zig-error-handling/</guid><description>&lt;p&gt;本文基于 Zig 0.16。&lt;/p&gt;
&lt;h2 id="三种错误处理范式"&gt;三种错误处理范式&lt;/h2&gt;
&lt;p&gt;错误处理是编程语言设计中最具争议的话题之一。Go 的多返回值、Rust 的 &lt;code&gt;Result&amp;lt;T, E&amp;gt;&lt;/code&gt; 枚举、Zig 的错误联合类型——它们代表了三种截然不同的哲学。本文假设你已有 Go 或 Rust 经验，将以此为参照系来理解 Zig 的设计。&lt;/p&gt;</description></item></channel></rss>