<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Iterators on PlumePHP</title><link>https://plumephp.com/tags/iterators/</link><description>Recent content in Iterators on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Tue, 05 Sep 2023 11:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/iterators/index.xml" rel="self" type="application/rss+xml"/><item><title>Go 1.23 迭代器：range over func 的革命</title><link>https://plumephp.com/76-iterators-go-1.23/</link><pubDate>Tue, 05 Sep 2023 11:00:00 +0800</pubDate><guid>https://plumephp.com/76-iterators-go-1.23/</guid><description>&lt;h1 id="go-123-迭代器range-over-func-的革命"&gt;Go 1.23 迭代器：range over func 的革命&lt;/h1&gt;
&lt;p&gt;Go 语言有一件事一直让人又爱又恨：&lt;code&gt;for range&lt;/code&gt; 循环。&lt;/p&gt;
&lt;p&gt;爱它是因为它简洁、安全、没有 C 语言那种 &lt;code&gt;for (int i = 0; i &amp;lt; n; i++)&lt;/code&gt; 的啰嗦；恨它是因为它能遍历的东西太少了——数组、切片、map、字符串、channel，就这几样。&lt;/p&gt;</description></item></channel></rss>