Commit graph

14 commits

Author SHA1 Message Date
Arya-Elfren
734888cbe9
Simplify methods explanation in 047 2023-04-28 11:12:42 +01:00
Arya-Elfren
9211e54eb2
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
c88777ded9
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
cad9de0158 dev.1711 - switched to multi-object-for-loops 2023-02-21 21:43:40 +01:00
Chris Boesch
0e4f050417 removed unnecessary self pointer 2023-02-20 21:32:10 +01:00
Dave Gauer
93ecc1643e
Merge pull request #112 from nahuakang/ex047-reference
Edit comment to specify `for reference`
2022-07-31 16:24:48 -04:00
Dave Gauer
b8617bb752 Correct conventional Zig reference vs value passing re #89 2022-07-31 15:58:24 -04:00
Nahua
62e0bc88d6
Update comment per feedback 2022-07-31 18:04:56 +02:00
Dave Gauer
ae78706f45 Update ex 047 comment and patch 2022-07-31 11:32:51 -04:00
Nahua Kang
bca0bca69d Edit comment above a for loop by reference line 2022-07-24 22:57:05 +02:00
Jonathan Lopez
57a38303ac Create new HeatRay struct to combat aliens 2022-04-28 14:22:58 -04:00
Dave Gauer
63f25f7a73
Update 047_methods.zig 2021-08-30 17:55:10 -04:00
Roman Frołow
a7736f7d80
Prevent error "cast discards const qualifier" 2021-05-13 13:25:29 +02:00
Dave Gauer
6ad9774189 "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)