833 Commits (7a0cbb131f3cb93b6ef93587999bb2dbd1daeabe)
 

Author SHA1 Message Date
Joseph-Eugene Winzer c46245f727 Added a zig version test 4 years ago
Dave Gauer 2bdacd35c1 Added string specifier in format strings (#3)
This is now required in current versions of Zig.
4 years ago
Dave Gauer 56ba5d7fda Merge pull request #3 from Joefish/06_print_specifier
Added string specifier in Ex 06
4 years ago
Dave Gauer 311fe0ea3c Merge branch 'main' of github.com:ratfactor/ziglings into main 4 years ago
Dave Gauer 5b47e8ebe6 Removed incorrect explanation of assignment error (#1)
It really has nothing to do with the if/else expression. The peer
types are being resolved correctly.  The same error can be produced
with something as simple as:

    var foo = 5;
4 years ago
Joseph-Eugene Winzer f1632554da Added string specifier in Ex 06
std.fmt.format does not take strings without a string specifier since
zig 0.8.0.
4 years ago
Dave Gauer e382b01976 Ex 22 spelling error
I never make mistakes with apostrophes'es', so I dont' know what happened here.
4 years ago
Dave Gauer 82a1abe09b Improved 02 comment about imports being const 4 years ago
Dave Gauer 961cf22b88 Added Quiz 5 for pointers. Elephants!!! 4 years ago
Dave Gauer 55ad7c32f2 Moved exercises to exercises because exercises 4 years ago
Dave Gauer cf0920de31 Added Ex. 38-43 for pointers, updated README
Added topics beyond the language basics from ziglearn.org
to the README. That's a lot of exercises. I'd like to keep
it under 100, though!
4 years ago
Dave Gauer adf5ddb27d Consistent instructions and examples
I started off with "hints" that required the poor student to piece
together the information from incomplete bits. A complete example is
like a picture that is worth 1000 words and far clearer.
4 years ago
Dave Gauer 507355ec3b Added ex. 37,38 structs 4 years ago
Dave Gauer 2cded107cd Add ex 35,36 enums; updated README
I'm changing the order of some more topics. Trying to explain the value
of pointers when we're mostly dealing with stack-sized values like
integers feels convoluted. So I'm starting with enums (which also has a
nice segue from an earlier "switch" exercise). Then structs. Then unions
(just in keeping with the order of these items on ziglearn.org) and THEN
pointers and multi-pointers and slices.
4 years ago
Dave Gauer 738a9f6cda Inserted ex. 32 unreachable, added quiz4. 4 years ago
Dave Gauer cd80aeb190 Fixed README instructions 4 years ago
Dave Gauer c70fa5f58f Adding exs 27-32 4 years ago
Dave Gauer 2de8a8c54d Added ex 21-26 for error handling 4 years ago
Dave Gauer 08ec029f20 Added ex 19,20 functions and pop quiz 4 years ago
Dave Gauer a361b90a75 Hinting return type rather than making 'em guess. 4 years ago
Dave Gauer b02845819a Added Ex. 18 functions 4 years ago
Dave Gauer 8795937847 added quiz 2 4 years ago
Dave Gauer 7e123933b9 Ex 16 oops, forgot to unfix it. :-) 4 years ago
Dave Gauer 2bda44bc58 Added ex 15,16 for loops 4 years ago
Dave Gauer 483fb97dfc Added Ex 11-14: while loops 4 years ago
Dave Gauer 0bb89e3e41 Added Ex 9,10 for If 4 years ago
Dave Gauer b9b89737fc Added first quiz 4 years ago
Dave Gauer 30ef32e238 Added Exs. 6,7 strings 4 years ago
Dave Gauer faa49abb06 Added Ex. 5, array ops 4 years ago
Dave Gauer 87541c0c8b Added Ex. 4 arrays 4 years ago
Dave Gauer b3f74d9c30 Add exercise 3, exercise num param for script 4 years ago
Dave Gauer d618414c9c Added Ex. 2, polished script, added LICENSE 4 years ago
Dave Gauer 3b5678815f Initial commit with readme, script, and hello world
Absolutely minimum viable stuff.
4 years ago