<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zigling-exercises.git/exercises/047_methods.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-06-29T20:15:14Z</updated>
<entry>
<title>feat: begin solving exercises</title>
<updated>2026-06-29T20:15:14Z</updated>
<author>
<name>Ibrahim Muftee</name>
<email>ibrahim@muftee.net</email>
</author>
<published>2026-06-29T20:11:40Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=bdfe3df2947f8787c8a4ef8c534f6a8932e13871'/>
<id>urn:sha1:bdfe3df2947f8787c8a4ef8c534f6a8932e13871</id>
<content type='text'>
</content>
</entry>
<entry>
<title>expanded explanation about self vs *self</title>
<updated>2026-06-21T14:16:31Z</updated>
<author>
<name>Chris Boesch</name>
<email>chrboesch@noreply.codeberg.org</email>
</author>
<published>2026-06-21T14:16:31Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=cbcb570248a5297a0644fc22357bf81aac54545a'/>
<id>urn:sha1:cbcb570248a5297a0644fc22357bf81aac54545a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>the Earth</title>
<updated>2024-05-20T19:32:32Z</updated>
<author>
<name>Roman Frołow</name>
<email>rofrol@gmail.com</email>
</author>
<published>2024-05-20T19:32:32Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=a6d13af0c257701137db0d031d1898fd838fc158'/>
<id>urn:sha1:a6d13af0c257701137db0d031d1898fd838fc158</id>
<content type='text'>
</content>
</entry>
<entry>
<title>var to const when posssible</title>
<updated>2023-06-22T09:41:41Z</updated>
<author>
<name>lording</name>
<email>mathias.berthonneau@gmail.com</email>
</author>
<published>2023-06-22T09:41:41Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=d2d3dfa277e7d2a22ebbaf9b47316363035ed500'/>
<id>urn:sha1:d2d3dfa277e7d2a22ebbaf9b47316363035ed500</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify methods explanation in 047</title>
<updated>2023-04-28T10:12:42Z</updated>
<author>
<name>Arya-Elfren</name>
<email>109028294+Arya-Elfren@users.noreply.github.com</email>
</author>
<published>2023-04-28T10:12:42Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=3612c67f04e0d902a12c3f71ed52b1de8422804e'/>
<id>urn:sha1:3612c67f04e0d902a12c3f71ed52b1de8422804e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Clarify the methods syntax sugar &amp; a bit more</title>
<updated>2023-04-26T21:47:03Z</updated>
<author>
<name>Arya-Elfren</name>
<email>109028294+Arya-Elfren@users.noreply.github.com</email>
</author>
<published>2023-04-26T21:47:03Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=18f69f5634c7469042dc601e4c5609af9e0f382c'/>
<id>urn:sha1:18f69f5634c7469042dc601e4c5609af9e0f382c</id>
<content type='text'>
I think it's a bit clearer to show exactly what the syntax sugar of methods is, because that's all it is. Every function in Zig is in a struct (files are structs after all) and methods just simplify their use.

I also thought we might use the explicit saturating subtraction as that is why the feature is in Zig.</content>
</entry>
<entry>
<title>Merge pull request #191 from chrboesch/dev_1711</title>
<updated>2023-02-21T20:54:09Z</updated>
<author>
<name>Chris Boesch</name>
<email>chrboesch@noreply.codeberg.org</email>
</author>
<published>2023-02-21T20:54:09Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=c34380e939386d390f99a4f2d020fbd086988faa'/>
<id>urn:sha1:c34380e939386d390f99a4f2d020fbd086988faa</id>
<content type='text'>
dev.1711 - switched to multi-object-for-loops</content>
</entry>
<entry>
<title>dev.1711 - switched to multi-object-for-loops</title>
<updated>2023-02-21T20:43:40Z</updated>
<author>
<name>Chris Boesch</name>
<email>chrboesch@noreply.codeberg.org</email>
</author>
<published>2023-02-21T20:43:40Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=e7326dc5f92dd8a2dc8bd7cafb5b3eaaf55ce99b'/>
<id>urn:sha1:e7326dc5f92dd8a2dc8bd7cafb5b3eaaf55ce99b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>removed unnecessary self pointer</title>
<updated>2023-02-20T20:32:10Z</updated>
<author>
<name>Chris Boesch</name>
<email>chrboesch@noreply.codeberg.org</email>
</author>
<published>2023-02-20T20:32:10Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=b409387dc85d8a980ea3f1a5920891052ad1af6b'/>
<id>urn:sha1:b409387dc85d8a980ea3f1a5920891052ad1af6b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #112 from nahuakang/ex047-reference</title>
<updated>2022-07-31T20:24:48Z</updated>
<author>
<name>Dave Gauer</name>
<email>ratfactor@gmail.com</email>
</author>
<published>2022-07-31T20:24:48Z</published>
<link rel='alternate' type='text/html' href='https://git.muftee.net/zigling-exercises.git/commit/?id=4ce16782d02ec30a395e6300c6ebd05734febc55'/>
<id>urn:sha1:4ce16782d02ec30a395e6300c6ebd05734febc55</id>
<content type='text'>
Edit comment to specify `for reference`</content>
</entry>
</feed>
