Commit graph

18 commits

Author SHA1 Message Date
dcde00e30c
Merge branch 'main' of https://codeberg.org/ziglings/exercises 2024-06-01 06:41:29 -04:00
Roman Frołow
a6d13af0c2 the Earth 2024-05-20 21:32:32 +02:00
0b00b44e51
047-055 completed 2024-03-24 19:03:57 -04:00
lording
d2d3dfa277 var to const when posssible 2023-06-22 09:41:41 +00:00
Arya-Elfren
3612c67f04 Simplify methods explanation in 047 2023-04-28 11:12:42 +01:00
Arya-Elfren
18f69f5634 Clarify the methods syntax sugar & a bit more
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.
2023-04-26 22:47:03 +01:00
Chris Boesch
c34380e939 Merge pull request #191 from chrboesch/dev_1711
dev.1711 - switched to multi-object-for-loops
2023-02-21 21:54:09 +01:00
Chris Boesch
e7326dc5f9 dev.1711 - switched to multi-object-for-loops 2023-02-21 21:43:40 +01:00
Chris Boesch
b409387dc8 removed unnecessary self pointer 2023-02-20 21:32:10 +01:00
Dave Gauer
4ce16782d0 Merge pull request #112 from nahuakang/ex047-reference
Edit comment to specify `for reference`
2022-07-31 16:24:48 -04:00
Dave Gauer
dee6a96ddf Correct conventional Zig reference vs value passing re #89 2022-07-31 15:58:24 -04:00
Nahua
828f96c62c Update comment per feedback 2022-07-31 18:04:56 +02:00
Dave Gauer
c3c610acf0 Update ex 047 comment and patch 2022-07-31 11:32:51 -04:00
Nahua Kang
27fde06d56 Edit comment above a for loop by reference line 2022-07-24 22:57:05 +02:00
Jonathan Lopez
955bf3eead Create new HeatRay struct to combat aliens 2022-04-28 14:22:58 -04:00
Dave Gauer
065d409d0e Update 047_methods.zig 2021-08-30 17:55:10 -04:00
Roman Frołow
204146261c Prevent error "cast discards const qualifier" 2021-05-13 13:25:29 +02:00
Dave Gauer
0956f1839f "999 is enough for anybody" triple-zero padding (#18)
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.
2021-03-12 18:59:46 -05:00
Renamed from exercises/47_methods.zig (Browse further)