Easy interfaces with Zig v0.10
chrboesch opened this issue · 7 comments
Since Zig version 0.10 it is possible to create simpler interfaces, see: Easy Interfaces with Zig 0.10.0 I think that it is worth to make another excercise for it. Since I have already actively used this option in a program, I would program that for ziglings. 😃 I wouldn't put it under "unions," but rather under a new heading called "interfaces."
@ratfactor I made a draft for this exercise based on the idea of exercise 55-57, with an additional character, a grasshopper. I was thinking of a kind of "list of my garden friends", who automatically give a status every day. An interface would be a good fit for this. Now all that's really missing is the text: your part.
@chrboesch Ooh, sounds great! I'll start reading through Loris Cro's article (I wanted an excuse to do that anyway). Do you have a branch with the new exercise I could look at? Thanks!
@ratfactor What does the 'eyes emoji' means?
@chrboesch It means (at least I think so) "saw this" and/or "I'll take a look at this."
I skimmed it once through and looks great! I'll go through more carefully and see if I can come up with a good explanation/story. 😄
Great, from my point of view, this is the most difficult part.