Re:Using Zig's translate-C to understand weird C code
by kristoff_it on Wednesday November 03, 2021 @10:37AM
(#29095246)
OOP might have helped popularize usage of the dot notation, but namespaces are a different thing.
Zig has no inheritance but everything is namespaced, including declaring functions inside struct definitions so that you can use them as if they were methods.
Zig has no inheritance but everything is namespaced, including declaring functions inside struct definitions so that you can use them as if they were methods.