<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《“错误即值”，不同实现：Go与Zig错误处理哲学对比》的评论</title>
	<atom:link href="http://tonybai.com/2025/04/30/go-vs-zig-in-error-handling/feed/" rel="self" type="application/rss+xml" />
	<link>https://tonybai.com/2025/04/30/go-vs-zig-in-error-handling/</link>
	<description>一个程序员的心路历程</description>
	<lastBuildDate>Wed, 25 Mar 2026 09:21:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>作者：bigwhite</title>
		<link>https://tonybai.com/2025/04/30/go-vs-zig-in-error-handling/#comment-7823</link>
		<dc:creator>bigwhite</dc:creator>
		<pubDate>Wed, 30 Apr 2025 13:22:42 +0000</pubDate>
		<guid isPermaLink="false">https://tonybai.com/?p=4644#comment-7823</guid>
		<description>感谢提醒，已修正。</description>
		<content:encoded><![CDATA[<p>感谢提醒，已修正。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：amtoor</title>
		<link>https://tonybai.com/2025/04/30/go-vs-zig-in-error-handling/#comment-7822</link>
		<dc:creator>amtoor</dc:creator>
		<pubDate>Wed, 30 Apr 2025 06:05:07 +0000</pubDate>
		<guid isPermaLink="false">https://tonybai.com/?p=4644#comment-7822</guid>
		<description>文章的永久地址格式变了：
实际地址 https://tonybai.com/2025/04/30/httpstonybai-com20250430go-vs-zig-in-error-handling/
文章中给的地址 https://tonybai.com/2025/04/30/go-vs-zig-in-error-handling</description>
		<content:encoded><![CDATA[<p>文章的永久地址格式变了：<br />
实际地址 <a href="https://tonybai.com/2025/04/30/httpstonybai-com20250430go-vs-zig-in-error-handling/" rel="nofollow">https://tonybai.com/2025/04/30/httpstonybai-com20250430go-vs-zig-in-error-handling/</a><br />
文章中给的地址 <a href="https://tonybai.com/2025/04/30/go-vs-zig-in-error-handling" rel="nofollow">https://tonybai.com/2025/04/30/go-vs-zig-in-error-handling</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：重归混沌</title>
		<link>https://tonybai.com/2025/04/30/go-vs-zig-in-error-handling/#comment-7821</link>
		<dc:creator>重归混沌</dc:creator>
		<pubDate>Wed, 30 Apr 2025 05:01:38 +0000</pubDate>
		<guid isPermaLink="false">https://tonybai.com/?p=4644#comment-7821</guid>
		<description>我感觉Go的返回值最大的问题还在于他两个值是不互斥的，比如下面这段代码：
```go
type Foo struct {
...
}

func New() (*Foo, error) {
    return nil, nil
}
```
按约定，if err != nil 理论上Foo就不为nil, 但这取决于实现者的编程素养</description>
		<content:encoded><![CDATA[<p>我感觉Go的返回值最大的问题还在于他两个值是不互斥的，比如下面这段代码：<br />
“`go<br />
type Foo struct {<br />
&#8230;<br />
}</p>
<p>func New() (*Foo, error) {<br />
    return nil, nil<br />
}<br />
“`<br />
按约定，if err != nil 理论上Foo就不为nil, 但这取决于实现者的编程素养</p>
]]></content:encoded>
	</item>
</channel>
</rss>
