Shortest syntax to declare an array of strings

This works:

const std = @import("std");

test {
    const a3 = [_][]const u8{ "Hello", "Foo", "Bar" };
    std.debug.print("{s}\n", .{a3});
}
9 Likes