ziglings
ziglings copied to clipboard
Learn the Zig programming language by fixing tiny broken programs.
fix typo
It fails with this error after the other problems have been solved. ```zig Compiling 065_builtins2.zig... .\exercises\065_builtins2.zig:56:5: error: unable to evaluate constant expression var narcissus: Narcissus = Narcissus{}; ```
As a developer who writes allot of // my brain didn't compute the idea of it being around the other way. I spent a good 10 min on this until...
Thank you
I just wanted to say thank you. This learning material is great! I'm an old-time C-programmer and after a couple of hours with your material I'm having a great time...
1. fix all usages of namespace (I think there was only 1), 2. recap or summary scope visibility and access as (hopefully sufficiently) outlined above. Creating an issue here, so...
The comment at the top of exercise 82 has semicolons instead of commas in the tuple, and also tries to coerce a float into an integer, so changed `i64` to...
The patch for exercise 83 (anonymous lists) uses the type `[5]u8` for the string. To be consistent with exercise 77 (sentinels) shouldn't it be `[5:0]u8`? (It makes not difference to...
Only `ant` can be `.still_alive = true`. 🤣 https://youtu.be/_5YbPhOFC20?t=1682
In cases such as Exercise 058, the current Zig compiler errors are downright misleading for newbies, which makes it way too frustrating to solve the expected issue. (Thanks to @alexgenaud...
Thanks to @unional for pointing out that the comment and code on Ex 047 do not match, which is super unfortunate. The comment shows an instance where we don't need...