<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Rust on Yet another blog restart</title>
		<link>https://pseyfert.codeberg.page/tags/rust/</link>
		<description>Recent content in Rust on Yet another blog restart</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Wed, 24 Jun 2026 15:26:22 +0200</lastBuildDate>
		
			<atom:link href="https://pseyfert.codeberg.page/tags/rust/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>my paper cuts with rustfmt - and what to do about them</title>
				<link>https://pseyfert.codeberg.page/2026/06/my-paper-cuts-with-rustfmt-and-what-to-do-about-them/</link>
				<pubDate>Wed, 24 Jun 2026 15:26:22 +0200</pubDate>
				<guid>https://pseyfert.codeberg.page/2026/06/my-paper-cuts-with-rustfmt-and-what-to-do-about-them/</guid>
				<description>&lt;p&gt;&lt;code&gt;rustfmt&lt;/code&gt; occasionally fails me. Of cause, the examples are somewhat taken from&#xA;production code, but with all identifiers rendered unrecognizable and all&#xA;strings replaced by random words. Unhelpful comments to all of this would be&#xA;&amp;ldquo;why don&amp;rsquo;t you use shorter identifiers?&amp;rdquo; or &amp;ldquo;use shorter error messages&amp;rdquo;. But&#xA;let&amp;rsquo;s face it:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Naming is hard. And if your &lt;code&gt;foo&lt;/code&gt; function and your &lt;code&gt;bar&lt;/code&gt; function both return a &amp;ldquo;result&amp;rdquo;, but neither can use the &lt;code&gt;std::result::Result&lt;/code&gt; (slightly different semantics, non-binary logic, …) and you can&amp;rsquo;t introduce a common result type (too different needs for a one-size-fits-all, not even with type parameters), then you have to end up with a type name that says &amp;ldquo;result&amp;rdquo; with some more context. And a reader 10 levels up the call tree must not confuse the &lt;code&gt;FooResult&lt;/code&gt; with the &lt;code&gt;BarResult&lt;/code&gt;. Taking a thesaurus to come up with different names would be counter productive. Between a &lt;code&gt;MyResult&lt;/code&gt; and &lt;code&gt;MyOutcome&lt;/code&gt;, a human reader won&amp;rsquo;t remember which one is from &lt;code&gt;foo&lt;/code&gt; and which one is from &lt;code&gt;bar&lt;/code&gt;, what the API differences are, etc. The best name migh just be &lt;code&gt;foo_module::Result&lt;/code&gt; and &lt;code&gt;bar_module::Result&lt;/code&gt; and &lt;code&gt;use foo_module::Result&lt;/code&gt; won&amp;rsquo;t help the reader.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
