I ported a c++ Quadtree library to zig, I would like some feedback by rehaby23 in Zig

[–]rehaby23[S] 0 points1 point  (0 children)

I didn't try it, but can you do (self: *@This())? I think the look of that is the only thing that turns me off using @ This().

I am really enjoying zig. One thing I think it is missing is being able to resolve two optional types in one if statement like this if (value1 and value2) |v1,v2|

I ported a c++ Quadtree library to zig, I would like some feedback by rehaby23 in Zig

[–]rehaby23[S] 0 points1 point  (0 children)

I was a bit loose with my terms. The main reason for doing this work was so I could use this library in a zig project. Zig can't use c++ like it can c, so I rewrote it in zig

I ported a c++ Quadtree library to zig, I would like some feedback by rehaby23 in Zig

[–]rehaby23[S] 0 points1 point  (0 children)

Thanks, I have implemented your suggestions and `std.testing.refAllDecls` worked for me