<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>dotnet on Nicolas Teichtweier</title><link>https://schmiggolas.dev/tags/dotnet/</link><description>Recent content in dotnet on Nicolas Teichtweier</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>&lt;a href="https://schmiggolas.dev/imprint" rel="noopener">Imprint&lt;/a></copyright><lastBuildDate>Sun, 13 Jul 2025 11:00:12 +0200</lastBuildDate><atom:link href="https://schmiggolas.dev/tags/dotnet/index.xml" rel="self" type="application/rss+xml"/><item><title>OneOf, Monads in C#</title><link>https://schmiggolas.dev/posts/2025/oneof-csharp/</link><pubDate>Sun, 13 Jul 2025 11:00:12 +0200</pubDate><guid>https://schmiggolas.dev/posts/2025/oneof-csharp/</guid><description>So I&amp;rsquo;ve recently dabbled with rust a bit and boy does it have a learning curve. While I was working through the incredible rust book, I came across discriminated unions. I was not familliar with this concept before (shame, I know&amp;hellip; I wasn&amp;rsquo;t born writing Haskell like some of you, OK?) and it absolutely blew my mind.
For all of you who don&amp;rsquo;t yet know what they are, discriminated unions let you express &amp;ldquo;this value is one of these possible things&amp;rdquo; in a way that the compiler enforces exhaustive handling.</description></item></channel></rss>