<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zigling-exercises.git/exercises/46_optionals2.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>2021-03-12T23:59:46Z</updated>
<entry>
<title>"999 is enough for anybody" triple-zero padding (#18)</title>
<updated>2021-03-12T23:59:46Z</updated>
<author>
<name>Dave Gauer</name>
<email>dave@ratfactor.com</email>
</author>
<published>2021-03-12T23:59:46Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=0956f1839fcaaa273353148da9e157a8f9690d2f'/>
<id>urn:sha1:0956f1839fcaaa273353148da9e157a8f9690d2f</id>
<content type='text'>
When I hit 999 exercises, I will finally have reached the ultimate
state of soteriological release and no more exercises will be needed.
The cycle will be complete. All that will be left is perfect quietude,
freedom, and highest happiness.
</content>
</entry>
<entry>
<title>Added ex 48, additional comment on 46</title>
<updated>2021-02-28T18:23:22Z</updated>
<author>
<name>Dave Gauer</name>
<email>dave@ratfactor.com</email>
</author>
<published>2021-02-28T18:23:22Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=5f7e9389d5a8d5829f9a7a7fe50153e3d82abf7f'/>
<id>urn:sha1:5f7e9389d5a8d5829f9a7a7fe50153e3d82abf7f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>oops, left in old note</title>
<updated>2021-02-28T16:27:13Z</updated>
<author>
<name>Dave Gauer</name>
<email>dave@ratfactor.com</email>
</author>
<published>2021-02-28T16:27:13Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=594a5c0f473e72bff7380991e103373cb2dc489d'/>
<id>urn:sha1:594a5c0f473e72bff7380991e103373cb2dc489d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change default elephant tail to null (#25)</title>
<updated>2021-02-28T16:00:20Z</updated>
<author>
<name>Dave Gauer</name>
<email>dave@ratfactor.com</email>
</author>
<published>2021-02-28T16:00:20Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=077a779f3d2fdfc03b2108c518cde2e6d4133ead'/>
<id>urn:sha1:077a779f3d2fdfc03b2108c518cde2e6d4133ead</id>
<content type='text'>
It was confusing to see

    tail... = undefined

in the struct definition and then

    if (tail == null)

later in the exercise - it appears that the mismatch would be the issue
- but that's distracting from the real issue: making the value optional!

Changing the initial value to null is still correct, but won't distract.

The only worry now is that the user will remember the undefined
definition from the previous exercise and wonder if that has to be that
way...but you can't win them all!
</content>
</entry>
<entry>
<title>Added ex. 46 optionals 2 - elephants!</title>
<updated>2021-02-17T01:21:32Z</updated>
<author>
<name>Dave Gauer</name>
<email>dave@ratfactor.com</email>
</author>
<published>2021-02-17T01:21:32Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=f27601b55825fd8037082338ae996585946ef408'/>
<id>urn:sha1:f27601b55825fd8037082338ae996585946ef408</id>
<content type='text'>
</content>
</entry>
</feed>
