<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Language Features on Michael-F-Bryan</title><link>https://adventures.michaelfbryan.com/tags/language-features/</link><description>Recent content in Language Features on Michael-F-Bryan</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 26 Aug 2026 15:15:33 +0800</lastBuildDate><atom:link href="https://adventures.michaelfbryan.com/tags/language-features/index.xml" rel="self" type="application/rss+xml"/><item><title>Daily Rust: Iterators</title><link>https://adventures.michaelfbryan.com/posts/daily/iterators/</link><pubDate>Tue, 24 Aug 2021 03:55:00 +0800</pubDate><guid>https://adventures.michaelfbryan.com/posts/daily/iterators/</guid><description>&lt;p&gt;Iterators are part of Rust&amp;rsquo;s secret sauce. They power things from the humble&#10;for-loop to the elegant iterator chain, but have you ever stopped to think how&#10;they work?&lt;/p&gt;&#10;&lt;p&gt;Let&amp;rsquo;s find out more about Rust&amp;rsquo;s iterators by implementing our own versions of&#10;common iterators and reading the standard library&amp;rsquo;s source code.&lt;/p&gt;&#10;&lt;aside class="notice notice--info"&gt;&#10; &lt;p class="notice__label"&gt;&#10; &lt;i class="fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&#10; &lt;span&gt;Info&lt;/span&gt;&#10; &lt;/p&gt;&#10; &lt;div class="notice__body"&gt;&#10;&lt;p&gt;The code written in this article is available on the Rust Playground using the&#10;various &lt;a href="https://play.rust-lang.org/" class="external-link code-playground-link" target="_blank" rel="noopener"&gt;Run this example&lt;/a&gt;&#10; links dotted throughout. Feel free to browse&#10;through and steal code or inspiration.&lt;/p&gt;</description></item><item><title>Daily Rust: Slice Patterns</title><link>https://adventures.michaelfbryan.com/posts/daily/slice-patterns/</link><pubDate>Sat, 14 Aug 2021 00:00:00 +0000</pubDate><guid>https://adventures.michaelfbryan.com/posts/daily/slice-patterns/</guid><description>&lt;p&gt;&lt;a href="https://blog.rust-lang.org/2018/05/10/Rust-1.26.html#basic-slice-patterns" class="external-link" target="_blank" rel="noopener"&gt;Rust 1.26&lt;/a&gt;&#10; introduced a nifty little feature called &lt;em&gt;Basic Slice&#10;Patterns&lt;/em&gt; which lets you pattern match on slices with a known length. Later on&#10;in &lt;a href="https://blog.rust-lang.org/2020/03/12/Rust-1.42.html#subslice-patterns" class="external-link" target="_blank" rel="noopener"&gt;Rust 1.42&lt;/a&gt;&#10;, this was extended to allow using &lt;code&gt;..&lt;/code&gt; to match on&#10;&amp;ldquo;everything else&amp;rdquo;.&lt;/p&gt;&#10;&lt;p&gt;As features go this may seem like a small addition, but it gives developers an&#10;opportunity to write much more expressive code.&lt;/p&gt;&#10;&lt;aside class="notice notice--note"&gt;&#10; &lt;p class="notice__label"&gt;&#10; &lt;i class="fa-solid fa-note-sticky" aria-hidden="true"&gt;&lt;/i&gt;&#10; &lt;span&gt;Note&lt;/span&gt;&#10; &lt;/p&gt;&#10; &lt;div class="notice__body"&gt;&#10;&lt;p&gt;The code written in this article is available in the various playground links&#10;dotted throughout. Feel free to browse through and steal code or inspiration.&lt;/p&gt;</description></item></channel></rss>