Commit graph

1039 commits

Author SHA1 Message Date
mikkurogue
5cdaee7420 Update: Remove the 4th branch in favour of just making that the else branch
Probably easier to not have an "unused" branch that returns the same as the else branch in the example.

Signed-off-by: mikkurogue <mikkurogue@noreply.codeberg.org>
2025-01-07 10:15:59 +00:00
mikkurogue
de353bcb3b Update: 108 Labeled switch example to contain default case for exhaustion
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 <michael.lindemans@outlook.com>
2025-01-04 11:56:25 +00:00
Chris Boesch
5ed3af57ee Merge pull request 'Updated credits' (#192) from readme into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/192
2024-12-22 15:50:29 +00:00
Chris Boesch
105c98782c
Updated credits 2024-12-22 15:59:21 +01:00
Chris Boesch
f446402105
Updated credits 2024-12-22 15:52:52 +01:00
Chris Boesch
8da60edb82 Merge pull request 'Minor case-related changes.' (#184) from innerviewer/exercises:fix-consistent-naming-106 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/184
2024-11-09 22:36:35 +00:00
innerviewer
83e00872b8
Added patch file. 2024-11-09 20:36:47 +01:00
innerviewer
02bd0b2022 Merge branch 'main' into fix-consistent-naming-106 2024-11-09 13:28:43 +00:00
Chris Boesch
63951df523 Merge pull request 'Deleted unnecessary pointer.' (#185) from fix-176 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/185
2024-11-08 22:02:07 +00:00
Chris Boesch
0d9458807e
Deleted unnecessary pointer. 2024-11-08 22:48:37 +01:00
Chris Boesch
ae541a0d9c Merge pull request 'Added SIMD.' (#178) from readme into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/178
2024-11-08 21:34:21 +00:00
Chris Boesch
fb46871dab Merge branch 'main' into readme 2024-11-08 21:34:00 +00:00
Chris Boesch
2606e53733 Merge pull request 'Added missing space after a sentence.' (#182) from innerviewer/exercises:fix-typo-105 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/182
2024-11-08 21:32:45 +00:00
innerviewer
33d61cb3c9
Minor case-related changes. 2024-11-08 13:29:44 +01:00
innerviewer
e55f8e8699
Added missing space after a sentence. 2024-11-07 22:05:00 +01:00
Chris Boesch
4d4eefa523 Merge pull request 'Fixed link to format source code.' (#180) from fix-link-99 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/180
2024-11-07 20:51:59 +00:00
Chris Boesch
37a0f42621
Fixed link to format source code. 2024-11-07 21:45:47 +01:00
Chris Boesch
97c2ea2f49
Added SIMD. 2024-11-07 15:30:13 +01:00
Chris Boesch
731a3eb0a6 Merge pull request 'vectors-addition' (#177) from vectors-addition into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/177

Thank you @bgthompson for this great exercise!
2024-11-07 14:24:51 +00:00
Chris Boesch
bfed660020
Fixed formating, created patch file. 2024-11-07 15:01:59 +01:00
bgthompson
46e8fc0b61 line ending format patch attempt 2024-11-07 13:42:53 +10:00
bgthompson
8cce587d3b added patch file for 109_vectors 2024-11-07 13:31:32 +10:00
bgthompson
75e5e53497 removed commented solution lines in vectors exercise, added ??? into lines instead 2024-11-03 11:18:18 +10:00
bgthompson
c90d6015e3 created a new exercise about vectors in zig, gave it number 109 2024-11-03 11:16:00 +10:00
Chris Boesch
150b3de299 Merge pull request 'Improved maximumNarcissism' (#174) from pr173 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/174
2024-11-02 16:13:53 +00:00
Chris Boesch
fb018d212c
Improved maximumNarcissism 2024-11-02 17:03:46 +01:00
Chris Boesch
d0d31ae73a Merge pull request 'reuse fields' (#173) from rofrol/ziglings--exercises:reuse-fields into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/173
2024-11-02 15:54:34 +00:00
Roman Frołow
530dcde3d4 patch 2024-11-02 14:38:53 +01:00
Roman Frołow
286439cddc zero 2024-11-02 14:37:41 +01:00
Roman Frołow
f629d78268 reuse fields 2024-11-02 10:48:50 +01:00
Chris Boesch
71b4f5ea81 Merge pull request 'Fixed patch from quiz7 after text changes' (#171) from quiz7 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/171
2024-10-28 19:41:59 +00:00
Chris Boesch
8f49400aa1
Fixed patch from quiz7 after text changes
#Please enter the commit message for your changes. Lines starting
2024-10-28 09:40:17 +01:00
Chris Boesch
e2b20b3406 Merge pull request 'Rephrase instruction for clarity' (#170) from factormystic/exercises:quiz-7-instruction-clarify into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/170
2024-10-27 15:03:25 +00:00
factormystic
02478759b4 Rephrase instruction for clarity 2024-10-26 20:43:47 +00:00
Chris Boesch
173af62d34 Merge pull request 'Deleted .devcontainer because ist was a test.' (#165) from rm_devcont into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/165
2024-09-20 17:15:58 +00:00
Chris Boesch
9d1da38d38
Deleted .devcontainer because ist was a test. 2024-09-20 18:48:30 +02:00
Chris Boesch
775f5ebd29 Merge pull request 'Added Dave as initiator of Ziglings.' (#164) from readme into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/164
2024-09-20 11:21:28 +00:00
Chris Boesch
96df8ba304
Added Dave as initiator of Ziglings. 2024-09-20 12:45:23 +02:00
Chris Boesch
67c824118e Merge pull request 'Minor improvements.' (#163) from patch_lbl_sw into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/163
2024-09-20 10:19:26 +00:00
Chris Boesch
d1b49f353e
Minor improvements. 2024-09-20 12:10:55 +02:00
Chris Boesch
94b5b4bf4b Merge pull request 'Add a new exercise for a labeled switch' (#161) from nm-remarkable/exercises:main into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/161
2024-09-19 10:16:08 +00:00
Nuno Mendes
f0c2c56087 update108 .patch due to line change 2024-09-18 23:29:08 +02:00
Nuno Mendes
ed1a20d51b improve explanantions in labeled switch 2024-09-18 23:26:33 +02:00
Nuno Mendes
d9ce18631d downgrade zig version to eowyn version
It is just 2 days behind so all features are already present for the new labeled switch test
2024-09-16 18:44:36 +02:00
Nuno Mendes
db569a1478 update labeled switch to also have a break statement 2024-09-16 18:39:54 +02:00
Nuno Mendes
798bb40396 update zig version in build and readme 2024-09-16 18:34:35 +02:00
Nuno Mendes
580e126266 Add .patch for 108_labeled_switch 2024-09-15 20:16:57 +02:00
Nuno Mendes
335a78f8f5 108: Add a exercise for a labeled switch 2024-09-15 20:14:49 +02:00
Chris Boesch
102ba8c894 Merge pull request 'Update README.md' (#160) from chrboesch-readme into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/160
2024-09-11 19:13:46 +00:00
chrboesch
827146f680 Update README.md
Added new todo for core lang
2024-09-11 17:49:54 +00:00