2 ms·
zig's standard library `std.fmt` functions support named arguments as well: var tuple_params = html.create("{[foo]} ... {[bar]} ... {[observable]}", .{ .
by ifreund 5y ago
zig's standard library `std.fmt` functions support named arguments as well:
var tuple_params = html.create("{[foo]} ... {[bar]} ... {[observable]}", .{
.foo = a,
.bar = b+c,
.observable = observable,
});
It's verbose and explicit to be sure, but quite readable IMO.