<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zigling-exercises.git/exercises/108_labeled_switch.zig, branch main</title>
<subtitle>My copy of the Zigling exercises and their solutions. See the original at https://codeberg.org/ziglings/exercises
</subtitle>
<id>https://git.muftee.net/zigling-exercises.git/atom?h=main</id>
<link rel='self' href='https://git.muftee.net/zigling-exercises.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/'/>
<updated>2026-04-03T11:35:56Z</updated>
<entry>
<title>Insert space for additional async exercises</title>
<updated>2026-04-03T11:35:56Z</updated>
<author>
<name>Chris Boesch</name>
<email>chrboesch@noreply.codeberg.org</email>
</author>
<published>2026-04-03T11:35:56Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=e0259f43a726f61da14686de802021fcdb9aacd0'/>
<id>urn:sha1:e0259f43a726f61da14686de802021fcdb9aacd0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>108: .</title>
<updated>2025-05-31T23:08:07Z</updated>
<author>
<name>felixrabe</name>
<email>felixrabe@noreply.codeberg.org</email>
</author>
<published>2025-05-31T23:08:07Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=b1223f92edd6d488d491125dd6d415dc915707b4'/>
<id>urn:sha1:b1223f92edd6d488d491125dd6d415dc915707b4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>108: Make pretty</title>
<updated>2025-05-31T23:05:37Z</updated>
<author>
<name>felixrabe</name>
<email>felixrabe@noreply.codeberg.org</email>
</author>
<published>2025-05-31T23:05:22Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=91f1c045bcd33e43f2723ed5b8a159c85f54acb0'/>
<id>urn:sha1:91f1c045bcd33e43f2723ed5b8a159c85f54acb0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: typos</title>
<updated>2025-03-20T20:24:40Z</updated>
<author>
<name>Jost Alemann</name>
<email>jost_alemann@me.com</email>
</author>
<published>2025-03-20T20:24:40Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=522b4673a426258d1299abd75021a9510644f9ba'/>
<id>urn:sha1:522b4673a426258d1299abd75021a9510644f9ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update exercises/108_labeled_switch.zig</title>
<updated>2025-01-08T13:22:29Z</updated>
<author>
<name>chrboesch</name>
<email>chrboesch@noreply.codeberg.org</email>
</author>
<published>2025-01-08T13:22:29Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=90d05995b5d5453bfed4eef2547dd31efa3af412'/>
<id>urn:sha1:90d05995b5d5453bfed4eef2547dd31efa3af412</id>
<content type='text'>
Fixed an error in the debug statement and made the text a bit more coherent.

Signed-off-by: chrboesch &lt;chrboesch@noreply.codeberg.org&gt;</content>
</entry>
<entry>
<title>Update exercises/108_labeled_switch.zig</title>
<updated>2025-01-08T12:18:25Z</updated>
<author>
<name>chrboesch</name>
<email>chrboesch@noreply.codeberg.org</email>
</author>
<published>2025-01-08T12:18:25Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=54f743ba43630a452f8104b5b21fbbcdeefe866f'/>
<id>urn:sha1:54f743ba43630a452f8104b5b21fbbcdeefe866f</id>
<content type='text'>
The sentence was slightly unclear

Signed-off-by: chrboesch &lt;chrboesch@noreply.codeberg.org&gt;</content>
</entry>
<entry>
<title>Fix a typo: we need do we need to -&gt; we need to</title>
<updated>2025-01-07T18:00:16Z</updated>
<author>
<name>mikkurogue</name>
<email>mikkurogue@noreply.codeberg.org</email>
</author>
<published>2025-01-07T18:00:16Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=87b258d0a90af4cf5e16986226b589c2a541db32'/>
<id>urn:sha1:87b258d0a90af4cf5e16986226b589c2a541db32</id>
<content type='text'>
Morning delirium does not help when looking at lots of words
</content>
</entry>
<entry>
<title>Update: Remove the 4th branch in favour of just making that the else branch</title>
<updated>2025-01-07T10:15:59Z</updated>
<author>
<name>mikkurogue</name>
<email>mikkurogue@noreply.codeberg.org</email>
</author>
<published>2025-01-07T10:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=5cdaee74205e97da127d749b07cbe6e64ba6a940'/>
<id>urn:sha1:5cdaee74205e97da127d749b07cbe6e64ba6a940</id>
<content type='text'>
Probably easier to not have an "unused" branch that returns the same as the else branch in the example.

Signed-off-by: mikkurogue &lt;mikkurogue@noreply.codeberg.org&gt;</content>
</entry>
<entry>
<title>Update: 108 Labeled switch example to contain default case for exhaustion</title>
<updated>2025-01-04T11:56:25Z</updated>
<author>
<name>mikkurogue</name>
<email>michael.lindemans@outlook.com</email>
</author>
<published>2025-01-04T11:56:25Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=de353bcb3b6d7ef59bcf1ceb0a326ab6e5a4139f'/>
<id>urn:sha1:de353bcb3b6d7ef59bcf1ceb0a326ab6e5a4139f</id>
<content type='text'>
Update example text to give clarity on default/exhaustive case.

Reasoning:
The input for the example will not compile if user would want to test this for the logic of a labeled switch. Due the input not being an exhaustive input but rather "any u8 integer" (for the lack of better terminology) we need to use the else branch to indicate that the default case is handled, in this case by just emulating the '4' branch, but this could return an error.InvalidCaseProvided for example.

Signed-off-by: mikkurogue &lt;michael.lindemans@outlook.com&gt;</content>
</entry>
<entry>
<title>Minor improvements.</title>
<updated>2024-09-20T10:10:55Z</updated>
<author>
<name>Chris Boesch</name>
<email>chrboesch@noreply.codeberg.org</email>
</author>
<published>2024-09-20T10:10:55Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=d1b49f353eaa7358a4041a3090e87f49dc0a4bf6'/>
<id>urn:sha1:d1b49f353eaa7358a4041a3090e87f49dc0a4bf6</id>
<content type='text'>
</content>
</entry>
</feed>
