News for hackers. Stuff that matters.
Re:Show HN: A 166 KB file for cross compiling glibc for any ... by Spex_guy on Monday December 13, 2021 @01:02PM (#29542274)
Your instinct is right about array types, semantically in Zig they are passed by value. Parameter values are always const though, which allows the compiler to sometimes use pass-by-const-ref to avoid copying large pieces of data. Since arrays are proper value types, we can also make strongly typed pointers to them, like `*[3][4]u32`.

There are no comments on this comment yet.