Open Pyrolistical opened 1 year ago
Yes, this direction seems fine to me.
I am curious, do you need any help with this? I am willing to contribute to get this done, since I am going to use zflecs for my game engine.
You can lead this effort. I'm not working on this at the moment
In zig-gamedev/zig-gamedev#261, in regards to the zflecs style @michal-z said
I believe we can achieve both in most (if not all) cases.
For example,
We can keep both as the ziggified style only requires duplicating
fn field
into theiter_t
struct.Another example,
To achieve that, I believe we only need to make
zflecs.zig
a top-level struct of typeWorld
, but also keep non-world static functions likefn field
and other constants.World
would hold the pointer toworld_t
.Is this desired direction zflecs should head in?